mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Remove the Undo closed window entry from the manager before opening the closed window.
BUG: 301974 REVIEW: 114780 FIXED-IN: 4.12.1
This commit is contained in:
parent
67bb99c5de
commit
ce040ab74f
1 changed files with 4 additions and 4 deletions
|
@ -130,7 +130,7 @@ void KonqUndoManager::undo()
|
|||
KonqClosedItem* closedItem = m_closedItemList.first();
|
||||
|
||||
// Check what to undo
|
||||
if (!m_supportsFileUndo || !KIO::FileUndoManager::self()->undoAvailable() || closedItem->serialNumber() > fileUndoManager->currentCommandSerialNumber()) {
|
||||
if (!m_supportsFileUndo || !fileUndoManager->undoAvailable() || closedItem->serialNumber() > fileUndoManager->currentCommandSerialNumber()) {
|
||||
undoClosedItem(0);
|
||||
return;
|
||||
}
|
||||
|
@ -209,13 +209,13 @@ void KonqUndoManager::undoClosedItem(int index)
|
|||
if(closedTabItem)
|
||||
emit openClosedTab(*closedTabItem);
|
||||
else if(closedRemoteWindowItem) {
|
||||
emit openClosedWindow(*closedRemoteWindowItem);
|
||||
KonqClosedWindowsManager::self()->removeClosedWindowItem(this, closedRemoteWindowItem);
|
||||
emit openClosedWindow(*closedRemoteWindowItem);
|
||||
} else if(closedWindowItem) {
|
||||
emit openClosedWindow(*closedWindowItem);
|
||||
KonqClosedWindowsManager::self()->removeClosedWindowItem(this, closedWindowItem);
|
||||
emit openClosedWindow(*closedWindowItem);
|
||||
closedWindowItem->configGroup().deleteGroup();
|
||||
|
||||
|
||||
// Save config so that this window won't appear in new konqueror processes
|
||||
KonqClosedWindowsManager::self()->saveConfig();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue