App/Gui: New restoreError Document status and Gui pop-up
======================================================== If the restore of Document.xml results in invalid Document.xml (because unhandled exceptions occurred), the document status Document::restoreError is set. The GUI or Mod/Web if a link was clicked, show a pop-up indicating this situation. This commit also shows an appropriate pop-up for the partialRestore when opening from the menu, that before only appeared when opening by clicking a link.
This commit is contained in:
committed by
abdullahtahiriyo
parent
e2c4d5f86e
commit
05ccc95cde
@@ -554,6 +554,9 @@ void BrowserView::onLinkClicked (const QUrl & url)
|
||||
App::Document *doc = BaseView::getAppDocument();
|
||||
if(doc && doc->testStatus(App::Document::PartialRestore))
|
||||
QMessageBox::critical(this, tr("Error"), tr("There were errors while loading the file. Some data might have been modified or not recovered at all. Look in the report view for more specific information about the objects involved."));
|
||||
|
||||
if(doc && doc->testStatus(App::Document::RestoreError))
|
||||
QMessageBox::critical(this, tr("Error"), tr("There were serious errors while loading the file. Some data might have been modified or not recovered at all. Saving the project will most likely result in loss of data."));
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user