1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +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); setDirty(true);
} }
/** /**

View File

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

View File

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