[mythtv] [PATCH] stop cursor dissapearing completly for Gnome

John Harvey john.p.harvey at btinternet.com
Sun Mar 28 15:59:26 EST 2004


Skipped content of type multipart/alternative-------------- next part --------------
Index: programs/mythfrontend/main.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfrontend/main.cpp,v
retrieving revision 1.140
diff -u -r1.140 main.cpp
--- programs/mythfrontend/main.cpp	27 Mar 2004 08:17:41 -0000	1.140
+++ programs/mythfrontend/main.cpp	28 Mar 2004 20:26:52 -0000
@@ -974,6 +974,7 @@
     }
 #endif
 
+    delete mainWindow;
     delete gContext;
     return exitstatus;
 }
Index: libs/libmyth/mythdialogs.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmyth/mythdialogs.cpp,v
retrieving revision 1.62
diff -u -r1.62 mythdialogs.cpp
--- libs/libmyth/mythdialogs.cpp	27 Mar 2004 05:54:20 -0000	1.62
+++ libs/libmyth/mythdialogs.cpp	28 Mar 2004 20:26:55 -0000
@@ -185,10 +185,12 @@
     RegisterKey("Global", "7", "7", "7");
     RegisterKey("Global", "8", "8", "8");
     RegisterKey("Global", "9", "9", "9");
+    qApp->setOverrideCursor(QCursor(Qt::BlankCursor));
 }
 
 MythMainWindow::~MythMainWindow()
 {
+    qApp->restoreOverrideCursor();
     delete d;
 }
 
@@ -207,7 +209,6 @@
 
     setFont(gContext->GetMediumFont());
     setCursor(QCursor(Qt::BlankCursor));
-    qApp->setOverrideCursor(QCursor(Qt::BlankCursor));
 
 #ifdef QWS
 #if QT_VERSION >= 0x030300


More information about the mythtv-dev mailing list