Commit 3f993d5e authored by Christoffer Ackelman's avatar Christoffer Ackelman

Fixed wb close button not calling the destructor.

parent 03907f8e
...@@ -1485,7 +1485,7 @@ void WttQt::open_confirm(const char *text, const char *title, ...@@ -1485,7 +1485,7 @@ void WttQt::open_confirm(const char *text, const char *title,
QMessageBox::StandardButton reply = QMessageBox::question( QMessageBox::StandardButton reply = QMessageBox::question(
toplevel, translate_utf8(title), translate_utf8(text), toplevel, translate_utf8(title), translate_utf8(text),
QMessageBox::Ok | QMessageBox::No | QMessageBox::Cancel); QMessageBox::Ok | QMessageBox::No | QMessageBox::Cancel);
if (reply == QMessageBox::Yes) { if (reply == QMessageBox::Ok) {
if (ok_cb) { if (ok_cb) {
(ok_cb)(this); (ok_cb)(this);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment