diff options
| author | Frank Reininghaus <[email protected]> | 2011-07-17 19:25:49 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2011-07-17 19:31:30 +0200 |
| commit | 69e4007e5e330f2ca87c0176a186967b5ca156e8 (patch) | |
| tree | 34d1228254d3dfaa96ecc49cc7577a5bdc43f544 /src/dolphinapplication.cpp | |
| parent | 051759e82302890166e5a4c885a82b2e8bd15f77 (diff) | |
Fix Dolphin session management regression
The commit fff7573ebb910712ad97951bf1762e6a7bb0bdc7 introduced a
regression concerning restoration of saved Dolphin sessions. The
main window numbers which can be passed to KMainWindow::restore()
start with 1, and not with 0.
CCBUG:275649
(cherry picked from commit b4091809beedf0e373ac2f497634cc0bedf77a8f)
Diffstat (limited to 'src/dolphinapplication.cpp')
| -rw-r--r-- | src/dolphinapplication.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphinapplication.cpp b/src/dolphinapplication.cpp index 9dc0cf0f7..0dc9c9602 100644 --- a/src/dolphinapplication.cpp +++ b/src/dolphinapplication.cpp @@ -83,9 +83,9 @@ DolphinApplication* DolphinApplication::app() void DolphinApplication::restoreSession() { - const QString className = KXmlGuiWindow::classNameOfToplevel(0); + const QString className = KXmlGuiWindow::classNameOfToplevel(1); if (className == QLatin1String("DolphinMainWindow")) { - m_mainWindow->restore(0); + m_mainWindow->restore(1); } else { kWarning() << "Unknown class " << className << " in session saved data!"; } |
