1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

GCS - Make the save/apply operation result icons disappear when the form contents changes.

This commit is contained in:
zedamota 2012-03-02 18:47:24 +00:00
parent 37975dc00a
commit 05ef028f9d
3 changed files with 8 additions and 0 deletions

View File

@ -412,6 +412,7 @@ void ConfigTaskWidget::widgetsContentsChanged()
}
}
}
smartsave->resetIcons();
setDirty(true);
}
/**

View File

@ -192,6 +192,12 @@ void smartSaveButton::enableControls(bool value)
button->setEnabled(value);
}
void smartSaveButton::resetIcons()
{
foreach(QPushButton * button,buttonList.keys())
button->setIcon(QIcon());
}
void smartSaveButton::apply()
{
processOperation(NULL,false);

View File

@ -52,6 +52,7 @@ public:
void removeAllObjects();
void addApplyButton(QPushButton *apply);
void addSaveButton(QPushButton *save);
void resetIcons();
signals:
void preProcessOperations();
void saveSuccessfull();