Terminal doesn't crash anymore when Print is selected from the menu.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16447 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -620,7 +620,7 @@ TermWindow::DoPrint()
|
|||||||
//#if B_BEOS_VERSION < 0x0460
|
//#if B_BEOS_VERSION < 0x0460
|
||||||
BPrintJob job("Print");
|
BPrintJob job("Print");
|
||||||
|
|
||||||
if((! fPrintSettings) && (DoPageSetup() != B_NO_ERROR)) {
|
if((! fPrintSettings) || (DoPageSetup() != B_NO_ERROR)) {
|
||||||
(new BAlert("Cancel", "Print cancelled.", "OK"))->Go();
|
(new BAlert("Cancel", "Print cancelled.", "OK"))->Go();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user