mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-20 16:08:44 +00:00
Save from the file menu too.
--HG-- branch : dfighter-tools
This commit is contained in:
parent
0dcabb6b64
commit
9b6ff808c5
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