mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
Everywhere: Replace most cases of exit() with Application::quit()
Application::quit() is nicer for most cases where exit() is used. Cases where exit() is used intentionally for early termination are left intact.
This commit is contained in:
parent
2caafacd9b
commit
73c1b1617a
5 changed files with 12 additions and 11 deletions
|
@ -73,8 +73,10 @@ void IRCAppWindow::setup_client()
|
|||
|
||||
if (m_client->hostname().is_empty()) {
|
||||
String value;
|
||||
if (GUI::InputBox::show(this, value, "Enter server:", "Connect to server") == GUI::InputBox::ExecCancel)
|
||||
::exit(0);
|
||||
if (GUI::InputBox::show(this, value, "Enter server:", "Connect to server") == GUI::InputBox::ExecCancel) {
|
||||
GUI::Application::the()->quit();
|
||||
return;
|
||||
}
|
||||
|
||||
m_client->set_server(value, 6667);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue