]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/configtool/src/configtooldoc.cpp
Added window styles to wxToolBar handler.
[wxWidgets.git] / utils / configtool / src / configtooldoc.cpp
index a2875fc05e0a7ee775a27cf936a07cde3b59cb15..c2cb229ce8baf8773bd568a19ed5db9647c5d589 100644 (file)
@@ -101,13 +101,11 @@ bool ctConfigToolDoc::OnCloseDocument()
 // Saves the doc
 bool ctConfigToolDoc::Save()
 {
-    bool ret = FALSE;
-
     if (!IsModified() && m_savedYet) return TRUE;
-    if (m_documentFile == wxT("") || !m_savedYet)
-        ret = SaveAs();
-    else
-        ret = OnSaveDocument(m_documentFile);
+
+    bool ret = (m_documentFile == wxT("") || !m_savedYet) ?
+                 SaveAs() :
+                 OnSaveDocument(m_documentFile);
     if ( ret )
         SetDocumentSaved(TRUE);
     return ret;
@@ -1229,10 +1227,10 @@ void ctConfiguration::Detach()
 /// the config items
 void ctConfiguration::DetachFromTree()
 {
+/*
     wxTreeItemId item = GetTreeItemId();
 
     // TODO
-/*
     ctTreeItemData* data = (ctTreeItemData*) wxGetApp().GetMainFrame()->GetConfigTreeCtrl()->GetItemData(item);
     data->SetConfigItem(NULL);
     m_treeItemId = wxTreeItemId();