[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/devtools/kategdbplugin
From:       Ian Wakeling <ian.wakeling () ntlworld ! com>
Date:       2010-07-28 21:46:36
Message-ID: 20100728214636.C271FAC782 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1156321 by ianwakeling:

Remember the last-used target and restore it for the new session.

 M  +5 -0      configview.cpp  


--- trunk/playground/devtools/kategdbplugin/configview.cpp #1156320:1156321
@@ -175,6 +175,9 @@
             argumentLists->addItem( group.readEntry(    argsKey.arg( i ),
                                                         QString() ) );
         }
+
+        int lastTarget = group.readEntry( "lastTarget", 0 );
+        targets->setCurrentIndex( lastTarget );
     }
 }
 
@@ -194,6 +197,8 @@
         group.writeEntry( targetKey.arg( i ), targetDescription );
     }
 
+    group.writeEntry( "lastTarget", targets->currentIndex() );
+
     int     wdCount = workingDirectories->count();
     QString wdKey( "wd_%1" );
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic