* 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

View File

@ -77,10 +77,12 @@ status_t PrintServerApp::async_thread(void* data)
BAlert* alert = new BAlert("Info", alertText.Append("Would "
"you like to set one up now?").String(), "No", "Yes");
if (alert->Go() == 1 && count == 0)
run_add_printer_panel();
else
run_select_printer_panel();
if (alert->Go() == 1) {
if (count == 0)
run_add_printer_panel();
else
run_select_printer_panel();
}
}
} break;