mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
SPARK-941 - Pressing Cancel in "Log out with reason" window shouldnt log out
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@11461 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
committed by
michael.will
parent
1166ffd65a
commit
b3377dadf9
@ -287,18 +287,21 @@ public final class MainWindow extends ChatFrame implements ActionListener {
|
||||
status = inputTextDialog.getInput(Res.getString("title.status.message"), Res.getString("message.current.status"),
|
||||
SparkRes.getImageIcon(SparkRes.USER1_MESSAGE_24x24), this);
|
||||
}
|
||||
|
||||
// Notify all MainWindowListeners
|
||||
try {
|
||||
// Set auto-login to false;
|
||||
SettingsManager.getLocalPreferences().setAutoLogin(false);
|
||||
SettingsManager.saveSettings();
|
||||
|
||||
fireWindowShutdown();
|
||||
setVisible(false);
|
||||
}
|
||||
finally {
|
||||
closeConnectionAndInvoke(status);
|
||||
|
||||
if (status != null)
|
||||
{
|
||||
// Notify all MainWindowListeners
|
||||
try {
|
||||
// Set auto-login to false;
|
||||
SettingsManager.getLocalPreferences().setAutoLogin(false);
|
||||
SettingsManager.saveSettings();
|
||||
|
||||
fireWindowShutdown();
|
||||
setVisible(false);
|
||||
}
|
||||
finally {
|
||||
closeConnectionAndInvoke(status);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user