Update of /cvsroot/sharedaemon/ui-wx/src
In directory sc8-pr-cvs1:/tmp/cvs-serv30802
Modified Files:
MainDlg.cpp
Log Message:
Fixed frame size/pos saving
Index: MainDlg.cpp
===================================================================
RCS file: /cvsroot/sharedaemon/ui-wx/src/MainDlg.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- MainDlg.cpp 5 Dec 2003 22:20:49 -0000 1.21
+++ MainDlg.cpp 7 Dec 2003 21:59:58 -0000 1.22
@@ -86,8 +86,8 @@
* Read position and size settings, and apply them before
* loading dialog pages.
*/
- m_config->Read(wxT("Frame/Height"), &height, 600);
- m_config->Read(wxT("Frame/Width"), &width, 800);
+ m_config->Read(wxT("/Frame/Height"), &height, 600);
+ m_config->Read(wxT("/Frame/Width"), &width, 800);
SetSize(width, height);
/**
@@ -96,8 +96,8 @@
* caused problems on OS X, better to center the whole thing and not
* worry about it any more.
*/
- bool isreadx = m_config->Read(wxT("Frame/PosX"), &posx, 20);
- bool isready = m_config->Read(wxT("Frame/PosY"), &posy, 20);
+ bool isreadx = m_config->Read(wxT("/Frame/PosX"), &posx, 20);
+ bool isready = m_config->Read(wxT("/Frame/PosY"), &posy, 20);
if (!isreadx && !isready) {
Center();
} else {
|