Browse Source

Fix adding to the recent file list getting confused by changes to the list from other KTIGCC instances.

git-svn-id: file:///var/svn/tigccpp/trunk@1077 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 17 years ago
parent
commit
0fe69a06c0
2 changed files with 5 additions and 0 deletions
  1. 2 0
      ktigcc/NEWS
  2. 3 0
      ktigcc/mainform.cpp

+ 2 - 0
ktigcc/NEWS

@@ -13,6 +13,8 @@ CVS HEAD (2007-04-03):
 * Fixed A68k items in the New menu being shown even when A68k is not installed.
 * Don't grab the keyboard globally (stealing key presses from other apps) in the
   Errors&Warnings pane, only override the Ctrl+C and Ctrl+Ins accelerators.
+* Fixed adding to the recent file list getting confused by changes to the list
+  from other KTIGCC instances.
 
 
 KTIGCC 1.06 (2006-11-25):

+ 3 - 0
ktigcc/mainform.cpp

@@ -1680,6 +1680,9 @@ void MainForm::updateRecent()
 void MainForm::addRecent(const QString &fileName)
 {
   unsigned i,j;
+  // Pick up any changes to the list of recent files from other instances
+  pconfig->sync();
+  pconfig->reparseConfiguration();
   pconfig->setGroup("Recent files");
   // Find recent file to overwrite. If it isn't one of the first 3, by
   // elimination, it is the last, thus the test only goes up to <4, not <=4.