From f91270810544bc7928a7d33ff90214cbcd52f0df Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Wed, 3 Mar 2010 01:53:02 +0000 Subject: [PATCH] MGR: Save & restore separate size info for project, task property dialogs; save positions on Mac svn path=/trunk/boinc/; revision=20777 --- clientgui/DlgItemProperties.cpp | 2 +- clientgui/DlgItemProperties.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/clientgui/DlgItemProperties.cpp b/clientgui/DlgItemProperties.cpp index 3867178351..3000de8d55 100755 --- a/clientgui/DlgItemProperties.cpp +++ b/clientgui/DlgItemProperties.cpp @@ -94,6 +94,7 @@ CDlgItemProperties::~CDlgItemProperties() { /* saves dialog size and (on Mac) position */ bool CDlgItemProperties::SaveState() { wxConfigBase* pConfig = wxConfigBase::Get(FALSE); + wxASSERT(pConfig); if (!pConfig) return false; @@ -113,7 +114,6 @@ bool CDlgItemProperties::RestoreState() { int iWidth, iHeight; wxASSERT(pConfig); - if (!pConfig) return false; pConfig->SetPath(m_strBaseConfigLocation); diff --git a/clientgui/DlgItemProperties.h b/clientgui/DlgItemProperties.h index 304028a935..d9ac6e2f8d 100755 --- a/clientgui/DlgItemProperties.h +++ b/clientgui/DlgItemProperties.h @@ -63,7 +63,6 @@ protected: wxGridBagSizer* m_gbSizer; wxButton* m_btnClose; wxString m_strBaseConfigLocation; - }; #endif // _DLGITEMPROPERTIES_H_