aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2015-06-27 06:47:58 +0200
committerPapoteur <papoteur@mageialinux-online.org>2015-06-27 06:47:58 +0200
commit0c888b6917e115036eed790f8a38e942494dcfa4 (patch)
treea3d0a69e7c2aa2aaee7f836765f137dcf459e024
parent3d3ff2fe523adffa7480222ecf2c78e2ba0b9331 (diff)
downloadusbdumper-0c888b6917e115036eed790f8a38e942494dcfa4.tar
usbdumper-0c888b6917e115036eed790f8a38e942494dcfa4.tar.gz
usbdumper-0c888b6917e115036eed790f8a38e942494dcfa4.tar.bz2
usbdumper-0c888b6917e115036eed790f8a38e942494dcfa4.tar.xz
usbdumper-0c888b6917e115036eed790f8a38e942494dcfa4.zip
Add a dialog windows when ISO is not hybrid.HEADmaster
-rw-r--r--[-rwxr-xr-x]liveusb/gui.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/liveusb/gui.py b/liveusb/gui.py
index da85b9f..c531c1a 100755..100644
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -256,10 +256,17 @@ class LiveUSBDialog(QtGui.QDialog, LiveUSBInterface):
"to the root of your drive (ie: C:\)"))
+ flag= False
if not self.live.is_hybrid(self.live.iso):
self.status(_("The selected iso isn't hybrid"))
- self.live.iso = None
+ r = QtGui.QMessageBox.warning(self, _("Warning"), _("The selected iso seems not to be hybrid. Do you want to use it?"), QtGui.QMessageBox.Ok | QtGui.QMessageBox.Cancel);
+ if(r == QtGui.QMessageBox.Cancel):
+ self.live.iso = None
+ else:
+ flag= True
else:
+ flag = True
+ if flag:
self.status("Iso " + _("selected"))
self.check_startbutton_state()