Ensure the dbus method profileList() will list all profiles

This commit is contained in:
Jekyll Wu
2012-01-16 13:17:01 +08:00
parent f5d67cc87a
commit 3191cd00b4

View File

@@ -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<Profile::Ptr> profilelist = SessionManager::instance()->loadedProfiles();
QList<Profile::Ptr>::iterator i = profilelist.begin();
QStringList list;