Ticket #7748: spontaneous.patch
File spontaneous.patch, 767 bytes (added by , 14 years ago) |
---|
-
libs/libmythui/mythmainwindow.cpp
673 673 674 674 void MythMainWindow::closeEvent(QCloseEvent *e) 675 675 { 676 QKeyEvent *key = new QKeyEvent(QEvent::KeyPress, d->escapekey, 676 if (e->spontaneous()) 677 { 678 QKeyEvent *key = new QKeyEvent(QEvent::KeyPress, d->escapekey, 677 679 Qt::NoModifier); 678 QCoreApplication::postEvent(this, key); 679 e->ignore(); 680 QApplication::postEvent(this, key); 681 e->ignore(); 682 } 683 else 684 QWidget::closeEvent(e); 680 685 } 681 686 682 687 bool MythMainWindow::screenShot(QString fname, int x, int y,