[NEW PATCH] Re: [mythtv] [PATCH] - [BUG] mythfrontend - Delete Recording

dan dan at milkcarton.com
Sat Apr 5 22:23:24 EST 2003


Skipped content of type multipart/alternative-------------- next part --------------
Index: programs/mythfrontend/playbackbox.cpp
===================================================================
RCS file: /var/lib/cvs/MC/programs/mythfrontend/playbackbox.cpp,v
retrieving revision 1.106
diff -u -d -r1.106 playbackbox.cpp
--- programs/mythfrontend/playbackbox.cpp	5 Apr 2003 21:23:11 -0000	1.106
+++ programs/mythfrontend/playbackbox.cpp	6 Apr 2003 07:18:46 -0000
@@ -1145,7 +1145,7 @@

     if (showData.count() == 0)
     {
-	tmp.drawText(showTitleLeft, (int)((double)bgShowPixmap->height() / (double)2) - showingHeight,
+	tmp.drawText(showTitleLeft, (int)((double)bgShowPixmap->height() / (double)2) - showingHeight,
 		     showTitleWidth + showDateWidth + showTimeWidth, showingHeight, AlignCenter,
 		     "Sorry, No Recordings Available");
     }
@@ -1561,7 +1561,8 @@
     if (!curitem || ignoreevents)
         return;

-    remove(curitem);
+    if (showData.count() != 0)
+        remove(curitem);

 }

@@ -1572,10 +1573,10 @@
     if (!curitem || ignoreevents)
         return;

-    switch (type)
+    switch (type)
     {
         case Play: play(curitem); break;
-        case Delete: remove(curitem); break;
+        case Delete: deleteSelected(); break;
     }
 }



More information about the mythtv-dev mailing list