Commit 26dac13e authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Fixed CoWowEntry hiding when losing focus.

parent 19b0868b
......@@ -608,6 +608,7 @@ void CoWowEntryQt::keyPressEvent(QKeyEvent* event)
}
case Qt::Key_Escape:
if (m_hide_on_esc) {
emit editingFinished();
clearFocus();
hide();
}
......@@ -623,6 +624,10 @@ void CoWowEntryQt::keyPressEvent(QKeyEvent* event)
}
}
void CoWowEntryQt::focusOutEvent(QFocusEvent *event) {
event->ignore();
}
//
// Modal Dialog with text and tree buttons
//
......
......@@ -65,6 +65,7 @@ public:
protected:
void keyPressEvent(QKeyEvent* event);
void focusOutEvent(QFocusEvent *);
};
class CoWowModalDialogQt : public QDialog {
......
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