summaryrefslogtreecommitdiff
path: root/src/gui/windows/logindialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-14 23:14:39 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-14 23:14:39 +0300
commitf7637a968024c69590ffbf6cbde3d8de06aebf7f (patch)
tree8878a71ed25618a0f11443c1151ca9957f0ee5b6 /src/gui/windows/logindialog.cpp
parentebb839206d2e8e482718af64ada4dafb3bc82556 (diff)
downloadmv-f7637a968024c69590ffbf6cbde3d8de06aebf7f.tar.gz
mv-f7637a968024c69590ffbf6cbde3d8de06aebf7f.tar.bz2
mv-f7637a968024c69590ffbf6cbde3d8de06aebf7f.tar.xz
mv-f7637a968024c69590ffbf6cbde3d8de06aebf7f.zip
Fix crash in login dialog if close it with opened drop down list.
Diffstat (limited to 'src/gui/windows/logindialog.cpp')
-rw-r--r--src/gui/windows/logindialog.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp
index 14c662a0d..17ab4ad7c 100644
--- a/src/gui/windows/logindialog.cpp
+++ b/src/gui/windows/logindialog.cpp
@@ -207,6 +207,11 @@ void LoginDialog::postInit()
LoginDialog::~LoginDialog()
{
+ if (mUpdateTypeDropDown)
+ mUpdateTypeDropDown->hideDrop(false);
+ if (mUpdateHostDropDown)
+ mUpdateHostDropDown->hideDrop(false);
+
delete2(mUpdateTypeModel);
delete2(mUpdateListModel);
}