Commit 88dee1f9 authored by Clément Fauconnier's avatar Clément Fauconnier

reorder documents tree when a document has been modified

parent 331d758d
...@@ -438,7 +438,10 @@ void UBApplicationController::showDocument() ...@@ -438,7 +438,10 @@ void UBApplicationController::showDocument()
} }
if (UBApplication::documentController) if (UBApplication::documentController)
{
emit UBApplication::documentController->reorderDocumentsRequested();
UBApplication::documentController->show(); UBApplication::documentController->show();
}
mMainWindow->show(); mMainWindow->show();
......
...@@ -2268,6 +2268,8 @@ void UBDocumentController::duplicateSelectedItem() ...@@ -2268,6 +2268,8 @@ void UBDocumentController::duplicateSelectedItem()
showMessage(tr("Document %1 copied").arg(""), false); showMessage(tr("Document %1 copied").arg(""), false);
} }
emit reorderDocumentsRequested();
} }
void UBDocumentController::deleteSelectedItem() void UBDocumentController::deleteSelectedItem()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment