From 33ce19159df65542687817e763a4504c9af39f5b Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Fri, 24 Apr 2009 05:11:56 +0000 Subject: [PATCH] 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 --- src/kits/tracker/FSUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/tracker/FSUtils.cpp b/src/kits/tracker/FSUtils.cpp index e1ee1b2cbc..efd721935f 100644 --- a/src/kits/tracker/FSUtils.cpp +++ b/src/kits/tracker/FSUtils.cpp @@ -2932,7 +2932,7 @@ _TrackerLaunchAppWithDocuments(const entry_ref *appRef, const BMessage *refs, bo dynamic_cast(be_app)->CloseParent(*nodeToClose); } else { alertString << "Could not open \"" << appRef->name << "\" (" << strerror(error) << "). "; - if (refs && openWithOK) { + if (refs && openWithOK && error != B_SHUTTING_DOWN) { alertString << kFindAlternativeStr; BAlert *alert = new BAlert("", alertString.String(), "Cancel", "Find", 0, B_WIDTH_AS_USUAL, B_WARNING_ALERT);