diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-17 23:53:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:18 +0300 |
commit | 649348f19cdb3d65f825a2a3270b185fc9d83c75 (patch) | |
tree | 3a31f64178d266383899c67782843736578e580e /src/client.cpp | |
parent | 0c6d457fe227ba9fd0a7c4c51cc2eb5995ca2c19 (diff) | |
download | mv-649348f19cdb3d65f825a2a3270b185fc9d83c75.tar.gz mv-649348f19cdb3d65f825a2a3270b185fc9d83c75.tar.bz2 mv-649348f19cdb3d65f825a2a3270b185fc9d83c75.tar.xz mv-649348f19cdb3d65f825a2a3270b185fc9d83c75.zip |
move virtual member calls from confirmdialog constuctor into postInit.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp index 824d07e5a..f53873c6a 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -2892,10 +2892,13 @@ Window *Client::openErrorDialog(const std::string &header, } else { - return new ConfirmDialog(header, strprintf("%s %s", message.c_str(), + ConfirmDialog *const dialog = new ConfirmDialog( + header, strprintf("%s %s", message.c_str(), // TRANSLATORS: error message question _("Do you want to open support page?")), SOUND_ERROR, false, modal); + dialog->postInit(); + return dialog; } } |