From ff8e5cd8512073b8baba83312069025fb6fc64be Mon Sep 17 00:00:00 2001 From: Michael Pfeiffer Date: Mon, 30 Jul 2007 18:31:21 +0000 Subject: [PATCH] The Haiku 'Save File Dialog' returns NULL in case of cancelation contrary to BeOS R5. Now NULL is check too. Fixes issue #1068. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21755 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/print/shared/PrintTransport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/print/shared/PrintTransport.cpp b/src/add-ons/print/shared/PrintTransport.cpp index 00e3cacf57..164e51022f 100644 --- a/src/add-ons/print/shared/PrintTransport.cpp +++ b/src/add-ons/print/shared/PrintTransport.cpp @@ -129,5 +129,5 @@ bool PrintTransport::IsPrintToFileCanceled() const // The BeOS "Print To File" transport add-on returns a non-NULL BDataIO * // even after user filepanel cancellation! BFile* file = dynamic_cast(fDataIO); - return file != NULL && file->InitCheck() != B_OK; + return fDataIO == NULL || file != NULL && file->InitCheck() != B_OK; }