From 0c888b6917e115036eed790f8a38e942494dcfa4 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sat, 27 Jun 2015 06:47:58 +0200 Subject: Add a dialog windows when ISO is not hybrid. --- liveusb/gui.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) mode change 100755 => 100644 liveusb/gui.py (limited to 'liveusb') diff --git a/liveusb/gui.py b/liveusb/gui.py old mode 100755 new mode 100644 index da85b9f..c531c1a --- 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() -- cgit v1.2.1