if opening a document failed because the system is shutting down, don't ask the user if he wants to open the document with another application, since that would fail as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30358 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2932,7 +2932,7 @@ _TrackerLaunchAppWithDocuments(const entry_ref *appRef, const BMessage *refs, bo
|
|||||||
dynamic_cast<TTracker *>(be_app)->CloseParent(*nodeToClose);
|
dynamic_cast<TTracker *>(be_app)->CloseParent(*nodeToClose);
|
||||||
} else {
|
} else {
|
||||||
alertString << "Could not open \"" << appRef->name << "\" (" << strerror(error) << "). ";
|
alertString << "Could not open \"" << appRef->name << "\" (" << strerror(error) << "). ";
|
||||||
if (refs && openWithOK) {
|
if (refs && openWithOK && error != B_SHUTTING_DOWN) {
|
||||||
alertString << kFindAlternativeStr;
|
alertString << kFindAlternativeStr;
|
||||||
BAlert *alert = new BAlert("", alertString.String(),
|
BAlert *alert = new BAlert("", alertString.String(),
|
||||||
"Cancel", "Find", 0, B_WIDTH_AS_USUAL, B_WARNING_ALERT);
|
"Cancel", "Find", 0, B_WIDTH_AS_USUAL, B_WARNING_ALERT);
|
||||||
|
|||||||
Reference in New Issue
Block a user