* respect the users choise and don't show the printer panel if he does not wan't to setup a printer

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25617 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Karsten Heimrich
2008-05-22 20:23:50 +00:00
parent 905b181d73
commit c749605ff1
+3 -1
View File
@@ -77,11 +77,13 @@ status_t PrintServerApp::async_thread(void* data)
BAlert* alert = new BAlert("Info", alertText.Append("Would " BAlert* alert = new BAlert("Info", alertText.Append("Would "
"you like to set one up now?").String(), "No", "Yes"); "you like to set one up now?").String(), "No", "Yes");
if (alert->Go() == 1 && count == 0) if (alert->Go() == 1) {
if (count == 0)
run_add_printer_panel(); run_add_printer_panel();
else else
run_select_printer_panel(); run_select_printer_panel();
} }
}
} break; } break;
// Retrieve default configuration message from printer add-on // Retrieve default configuration message from printer add-on