From 3191cd00b4c8073f54dff2667d8d8f130a55eff1 Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Mon, 16 Jan 2012 13:17:01 +0800 Subject: [PATCH] Ensure the dbus method profileList() will list all profiles --- src/ViewManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ViewManager.cpp b/src/ViewManager.cpp index ab169828b..7756a92f9 100644 --- a/src/ViewManager.cpp +++ b/src/ViewManager.cpp @@ -1070,6 +1070,10 @@ int ViewManager::newSession(QString profile, QString directory) QStringList ViewManager::profileList() { + // ensure all profiles are usable. + // FIXME: this explict calling smells bad. + SessionManager::instance()->loadAllProfiles(); + QList profilelist = SessionManager::instance()->loadedProfiles(); QList::iterator i = profilelist.begin(); QStringList list;