[PATCH 2/5] Don't traceback if Delete button is hit when no device is selected.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 iw/partition_gui.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index 831c04d..cea465d 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -980,6 +980,8 @@ class PartitionWindow(InstallWindow):
             devices. This will need some work when that time comes.
         """
         device = self.tree.getCurrentDevice()
+        if not device:
+            return
         if device.format.type == "disklabel":
             if doDeleteDependentDevices(self.intf,
                                         self.storage,
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux