diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index 42d7be4..70cefc0 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -125,12 +125,19 @@ MainWindow::Start() bool MainWindow::QuitRequested() { - fListView->MakeEmpty(); - fServer->Quit(); - CayaPreferences::Get()->Save(); - ReplicantStatusView::RemoveReplicant(); - be_app->PostMessage(B_QUIT_REQUESTED); - return true; + BAlert* alert = new BAlert("Closing", "Are you sure you wan to quit?", "Yes", "No", NULL, B_WIDTH_AS_USUAL, B_OFFSET_SPACING, B_WARNING_ALERT); + alert->SetShortcut(0, B_ESCAPE); + int32 button_index = alert->Go(); + if(button_index == 0) { + fListView->MakeEmpty(); + fServer->Quit(); + CayaPreferences::Get()->Save(); + ReplicantStatusView::RemoveReplicant(); + be_app->PostMessage(B_QUIT_REQUESTED); + return true; + } else { + return false; + } } diff --git a/application/preferences/PreferencesAccounts.cpp b/application/preferences/PreferencesAccounts.cpp index bf175dd..6571e8b 100644 --- a/application/preferences/PreferencesAccounts.cpp +++ b/application/preferences/PreferencesAccounts.cpp @@ -71,9 +71,9 @@ PreferencesAccounts::PreferencesAccounts() fProtosMenu->AddItem(item); } - ToolButton* proto = new ToolButton("+", NULL); + ToolButton* proto = new ToolButton("Add", NULL); proto->SetMenu(fProtosMenu); - fDelButton = new ToolButton("-", new BMessage(kDelAccount)); + fDelButton = new ToolButton("Del", new BMessage(kDelAccount)); fEditButton = new ToolButton("Edit...", new BMessage(kEditAccount)); fDelButton->SetEnabled(false); fEditButton->SetEnabled(false); diff --git a/configure b/configure index db3eb2a..e36691d 100755 --- a/configure +++ b/configure @@ -145,4 +145,6 @@ CAYA_DIRECTORY = $(finddir B_USER_APPS_DIRECTORY)/Caya ; DEFINES += ${defines} ; EOF +echo $USER_CONFIG_DIRECTORY +echo $SYSTEM_DEVELOP_DIRECTORY echo "Configuration done."