fixed show/hide toolbar without any comic opened

This commit is contained in:
Luis Ángel San Martín 2013-08-15 23:33:23 +02:00
parent e6bd9245e2
commit 9d392416a5
2 changed files with 3 additions and 0 deletions

View File

@ -713,6 +713,7 @@ void MainWindowViewer::disableActions()
void MainWindowViewer::keyPressEvent(QKeyEvent *event)
{
//TODO remove unused keys
switch (event->key())
{
case Qt::Key_Escape:

View File

@ -386,6 +386,8 @@ void Viewer::keyPressEvent(QKeyEvent *event)
QCoreApplication::sendEvent(mglass,event);
}
}
else
QAbstractScrollArea::keyPressEvent(event);
}
void Viewer::wheelEvent(QWheelEvent * event)