diff --git a/krusader/Panel/listpanel.cpp b/krusader/Panel/listpanel.cpp --- a/krusader/Panel/listpanel.cpp +++ b/krusader/Panel/listpanel.cpp @@ -1208,6 +1208,11 @@ changeType(cfg.readEntry("Type", defaultPanelType())); view->restoreSettings(KConfigGroup(&cfg, "View")); + // "locked" property must be set after URL path is restored! + // This panel can be reused when loading a profile, + // so we reset its properties before calling openUrl(). + setProperties(0); + _lastLocalPath = ROOT_DIR; if(func->history->restore(KConfigGroup(&cfg, "History"))) { func->refresh(); @@ -1220,7 +1225,6 @@ setJumpBack(func->history->currentUrl()); - // "locked" property must be set after URL path is restored! setProperties(cfg.readEntry("Properties", 0)); if (cfg.hasKey("PopupPosition")) { // popup was visible, restore diff --git a/krusader/krusaderview.cpp b/krusader/krusaderview.cpp --- a/krusader/krusaderview.cpp +++ b/krusader/krusaderview.cpp @@ -422,7 +422,7 @@ void KrusaderView::profiles(QString profileName) { - ProfileManager profileManager("Panel"); + ProfileManager profileManager("Panel", this); profileManager.hide(); connect(&profileManager, SIGNAL(saveToProfile(QString)), this, SLOT(savePanelProfiles(QString))); connect(&profileManager, SIGNAL(loadFromProfile(QString)), this, SLOT(loadPanelProfiles(QString)));