diff mainwindow.cpp @ 63:2340b00561d2

* Add (but don't yet use) RecentFiles class to replace inline MRU logic
author Chris Cannam
date Wed, 17 Nov 2010 14:26:27 +0000
parents 68aebc316898
children 794db9353c7f
line wrap: on
line diff
--- a/mainwindow.cpp	Wed Nov 17 13:32:56 2010 +0000
+++ b/mainwindow.cpp	Wed Nov 17 14:26:27 2010 +0000
@@ -1454,17 +1454,6 @@
         workFolderPath = "";
     }
 
-    for(int i = 0; i < NUM_PATHS_IN_MRU_LIST; i++)
-    {
-        QString tmp;
-
-        tmp.sprintf("remoterepomrupath%d", i);
-        remoteRepoMruList[i] = settings.value(tmp, "").toString();
-
-        tmp.sprintf("workfoldermrupath%d", i);
-        workFolderMruList[i] = settings.value(tmp, "").toString();
-    }
-
     userInfo = settings.value("userinfo", "").toString();
 
     QPoint pos = settings.value("pos", QPoint(200, 200)).toPoint();
@@ -1490,18 +1479,6 @@
     settings.setValue("size", size());
     settings.setValue("remoterepopath", remoteRepoPath);
     settings.setValue("workfolderpath", workFolderPath);
-
-    for(int i = 0; i < NUM_PATHS_IN_MRU_LIST; i++)
-    {
-        QString tmp;
-
-        tmp.sprintf("remoterepomrupath%d", i);
-        settings.setValue(tmp, remoteRepoMruList[i]);
-
-        tmp.sprintf("workfoldermrupath%d", i);
-        settings.setValue(tmp, workFolderMruList[i]);
-    }
-
     settings.setValue("userinfo", userInfo);
     settings.setValue("firststart", firstStart);
     settings.setValue("viewFileTypes", hgExp -> getFileTypesBits());