Save from the file menu too.
This commit is contained in:
parent
e6b39fc0b6
commit
8523452d2b
3 changed files with 12 additions and 1 deletions
|
@ -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()
|
||||
|
|
|
@ -94,6 +94,11 @@ void GeorgesEditorContext::open()
|
|||
m_georgesEditorForm->open();
|
||||
}
|
||||
|
||||
void GeorgesEditorContext::save()
|
||||
{
|
||||
m_georgesEditorForm->save();
|
||||
}
|
||||
|
||||
QWidget *GeorgesEditorContext::widget()
|
||||
{
|
||||
return m_georgesEditorForm;
|
||||
|
|
|
@ -86,6 +86,8 @@ public:
|
|||
|
||||
virtual void open();
|
||||
|
||||
void save();
|
||||
|
||||
virtual QUndoStack *undoStack();
|
||||
|
||||
virtual QWidget *widget();
|
||||
|
|
Loading…
Reference in a new issue