1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-1728 Add message dialog if something to save

This commit is contained in:
Laurent Lalanne 2015-02-18 02:46:53 +01:00
parent ee3efc535e
commit f44a663e27

View File

@ -196,6 +196,15 @@ void ConfigOutputWidget::runChannelTests(bool state)
if (state) {
sendAllChannelTests();
}
// Add info at end
if (!state && isDirty()) {
QMessageBox mbox;
mbox.setText(QString(tr("You may want to save our neutral settings." )));
mbox.setStandardButtons(QMessageBox::Ok);
mbox.setIcon(QMessageBox::Information);
mbox.exec();
}
}
OutputChannelForm *ConfigOutputWidget::getOutputChannelForm(const int index) const