Permalink
Browse files

Fix 'cancel' option when selecting DVD device

  • Loading branch information...
1 parent d00d2a8 commit fb89160891b56a63840e5b261f52bac50334733c @stuartm stuartm committed Jul 15, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 mythtv/libs/libmyth/mythmediamonitor.cpp
View
3 mythtv/libs/libmyth/mythmediamonitor.cpp
@@ -833,7 +833,10 @@ QString MediaMonitor::defaultDevice(QString dbSetting,
MythMediaDevice *d = c_monitor->selectDrivePopup(label, false, true);
if (d == (MythMediaDevice *) -1) // User cancelled
+ {
+ device.clear(); // If user has explicitly cancelled return empty string
d = NULL;
+ }
if (d && c_monitor->ValidateAndLock(d))
{

0 comments on commit fb89160

Please sign in to comment.