From b8518889059504471415e71e40d0ef210d62d746 Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Wed, 3 Sep 2014 17:22:09 +0200 Subject: [PATCH] Form editor should trigger the save button properly now. --- .../src/plugins/georges_editor/georges_treeview_dialog.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/studio/src/plugins/georges_editor/georges_treeview_dialog.cpp b/code/studio/src/plugins/georges_editor/georges_treeview_dialog.cpp index 184a8f845..e9ecec074 100644 --- a/code/studio/src/plugins/georges_editor/georges_treeview_dialog.cpp +++ b/code/studio/src/plugins/georges_editor/georges_treeview_dialog.cpp @@ -310,9 +310,9 @@ namespace GeorgesQt void CGeorgesTreeViewDialog::modifiedFile( ) { - if (!m_modified) + if (!isModified()) { - m_modified = true; + setModified( true ); setWindowTitle(windowTitle() + "*"); } Q_EMIT modified(); @@ -476,6 +476,8 @@ namespace GeorgesQt m_ui.treeView->setCurrentIndex( idx ); log( name + " resized = " + QString::number( size ) ); + + modifiedFile(); } void CGeorgesTreeViewDialog::onAppendArray()