Skip to content

Commit b3fba34

Browse files
committed
open file panel only when there is no open window yet.
1 parent 5f519e9 commit b3fba34

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: bepdf/beos/BepdfApplication.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,10 @@ void BepdfApplication::RefsReceived ( BMessage * msg )
579579
if (!encrypted) {
580580
BAlert *error = new BAlert(B_TRANSLATE("Error"), B_TRANSLATE("BePDF: Error opening file!"), B_TRANSLATE("Close"), NULL, NULL, B_WIDTH_AS_USUAL, B_STOP_ALERT);
581581
error->Go();
582-
OpenFilePanel();
582+
583+
if (mWindow == NULL) { // fixme: always true even if a PDF window is already open!
584+
OpenFilePanel();
585+
}
583586
} else {
584587
new PasswordWindow(&ref, rect, this);
585588
}

0 commit comments

Comments
 (0)