} else KXmlGuiWindow::keyPressEvent(ke);
}
+
+/** Gets called when the window gets hidden */
+void MainWindow::hideEvent(QHideEvent *event) {
+ // kDebug() << "I was hidden";
+ // issue http://www.kdenlive.org/mantis/view.php?id=231
+ if ( this->isMinimized() ) {
+ // kDebug() << "I am minimized";
+ if ( m_monitorManager ) m_monitorManager->stopActiveMonitor();
+ }
+}
+
bool MainWindow::eventFilter(QObject *obj, QEvent *event) {
if (m_findActivated) {
if (event->type() == QEvent::ShortcutOverride) {
virtual bool queryClose();
virtual void customEvent(QEvent * e);
virtual void keyPressEvent(QKeyEvent *ke);
+ /** Override hideEvent to get events when the mainwindow gets hidden */
+ virtual void hideEvent(QHideEvent *e);
bool eventFilter(QObject *obj, QEvent *ev);
/**
* This function is called when it is time for the app to save its