Skip to content

Commit 95adf93

Browse files
authored
Merge pull request #5485 from AenBleidd/vko_show_gui_message_when_another_instance_of_manager_is_running
[GUI] When another instance of the BOINC Manager is already running - show the corresponding message to the user
2 parents 8919c2c + 3fdebcb commit 95adf93

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: clientgui/BOINCGUIApp.cpp

+8-2
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,14 @@ bool CBOINCGUIApp::OnInit() {
461461
// Detect if BOINC Manager is already running, if so, bring it into the
462462
// foreground and then exit.
463463
if (DetectDuplicateInstance()) {
464-
printf( "Another instance of BOINC Manager already running.\n");
465-
return false;
464+
wxMessageDialog dialog(
465+
NULL,
466+
_("Another instance of BOINC Manager is already running."),
467+
_("BOINC Manager"),
468+
wxOK|wxICON_WARNING
469+
);
470+
dialog.ShowModal();
471+
return false;
466472
}
467473

468474
// Initialize the main document

0 commit comments

Comments
 (0)