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
This commit is contained in:
parent
dc5219b081
commit
ff8e5cd851
@ -129,5 +129,5 @@ bool PrintTransport::IsPrintToFileCanceled() const
|
|||||||
// The BeOS "Print To File" transport add-on returns a non-NULL BDataIO *
|
// The BeOS "Print To File" transport add-on returns a non-NULL BDataIO *
|
||||||
// even after user filepanel cancellation!
|
// even after user filepanel cancellation!
|
||||||
BFile* file = dynamic_cast<BFile*>(fDataIO);
|
BFile* file = dynamic_cast<BFile*>(fDataIO);
|
||||||
return file != NULL && file->InitCheck() != B_OK;
|
return fDataIO == NULL || file != NULL && file->InitCheck() != B_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user