Save from the file menu too.

--HG--
branch : dfighter-tools
This commit is contained in:
dfighter1985 2014-08-19 01:57:20 +02:00
parent 0dcabb6b64
commit 9b6ff808c5
3 changed files with 12 additions and 1 deletions

View file

@ -144,8 +144,12 @@ namespace GeorgesQt
void GeorgesEditorForm::save()
{
m_lastActiveDock->write();
m_saveAction->setEnabled(false);
m_saveAction->setEnabled(false);
QAction *saveAction = Core::ICore::instance()->menuManager()->action( Core::Constants::SAVE );
if( saveAction != NULL )
saveAction->setEnabled(false);
}
void GeorgesEditorForm::readSettings()

View file

@ -94,6 +94,11 @@ void GeorgesEditorContext::open()
m_georgesEditorForm->open();
}
void GeorgesEditorContext::save()
{
m_georgesEditorForm->save();
}
QWidget *GeorgesEditorContext::widget()
{
return m_georgesEditorForm;

View file

@ -86,6 +86,8 @@ public:
virtual void open();
void save();
virtual QUndoStack *undoStack();
virtual QWidget *widget();