Commit 137ce9d7 authored by Don Gagne's avatar Don Gagne

Merge pull request #2425 from pritamghanghas/esc_key_fix

Esc key fix
parents 2c2ea6d9 7119421c
......@@ -415,6 +415,12 @@ void MainWindow::normalActionItemCallback(bool)
if (!_ui.actionNormal->isChecked())
_ui.actionNormal->setChecked(true);
_ui.actionFullscreen->setChecked(false);
// Qt documentation says that just call showNormal and it will return properly
// So calling showMaximized.
if (isFullScreen()) {
showMaximized();
}
}
void MainWindow::showStatusBarCallback(bool checked)
......
......@@ -51,7 +51,7 @@
<x>0</x>
<y>0</y>
<width>1024</width>
<height>22</height>
<height>20</height>
</rect>
</property>
<widget class="QMenu" name="menuMGround">
......@@ -261,21 +261,5 @@
</hint>
</hints>
</connection>
<connection>
<sender>actionNormal</sender>
<signal>triggered()</signal>
<receiver>MainWindow</receiver>
<slot>showNormal()</slot>
<hints>
<hint type="sourcelabel">
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel">
<x>399</x>
<y>249</y>
</hint>
</hints>
</connection>
</connections>
</ui>
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