Commit 01828c04 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Enter key does always close() a dialog. Correction of a virtual keyword missing.

parent 9df6d11e
......@@ -135,7 +135,11 @@ public:
protected:
intf_thread_t *p_intf;
void cancel()
virtual void cancel()
{
hide();
}
virtual void close()
{
hide();
}
......@@ -145,6 +149,10 @@ protected:
{
cancel();
}
else if( keyEvent->key() == Qt::Key_Enter )
{
close();
}
}
};
......
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