|
From: <sv...@va...> - 2008-06-10 20:13:06
|
Author: cerion
Date: 2008-06-07 14:50:59 +0100 (Sat, 07 Jun 2008)
New Revision: 419
Log:
Fix crash:
Clicking valgrind options item first time would lead to a
crash -> init() executes updates to the page, which tried to update the page
before it had been setup completely.
Thanks to Pengcheng Zou for the patch.
Modified:
trunk/valkyrie/options/options_window.cpp
Modified: trunk/valkyrie/options/options_window.cpp
===================================================================
--- trunk/valkyrie/options/options_window.cpp 2008-06-07 13:34:53 UTC (rev 418)
+++ trunk/valkyrie/options/options_window.cpp 2008-06-07 13:50:59 UTC (rev 419)
@@ -218,8 +218,8 @@
/* make sure the item seletion is sync'd */
m_categories->setSelected( cit->catId(), true );
+ m_wStack->raiseWidget( cit->page() );
cit->page()->init();
- m_wStack->raiseWidget( cit->page() );
}
}
|