|
From: <sv...@va...> - 2011-06-27 15:06:48
|
Author: cerion
Date: 2011-06-27 16:01:58 +0100 (Mon, 27 Jun 2011)
New Revision: 533
Log:
duh.
Modified:
trunk/src/options/valgrind_options_page.cpp
Modified: trunk/src/options/valgrind_options_page.cpp
===================================================================
--- trunk/src/options/valgrind_options_page.cpp 2011-06-27 14:30:50 UTC (rev 532)
+++ trunk/src/options/valgrind_options_page.cpp 2011-06-27 15:01:58 UTC (rev 533)
@@ -488,6 +488,17 @@
return;
}
+ // first check we have a file to write to
+ LbWidget* lbSel = ( LbWidget* )m_itemList[VALGRIND::SUPPS_SEL];
+ QListWidget* lwSuppFiles = (QListWidget*)lbSel->widget();
+ if ( lwSuppFiles->count() == 0 ) {
+ suppfileNew();
+ }
+ // still no supp file? user may have Cancelled...
+ if ( lwSuppFiles->count() == 0 ) {
+ return;
+ }
+
// Edit new supp: update model and suppfile first...
if ( supplist.editSupp( -1, supp ) ) {
// ... then update the view
|