Permalink
Browse files

KDE: Show an error message when there isn't enough disk space

Previously no error was shown to the user and he didn't know
why he couldn't click next.
  • Loading branch information...
1 parent 1103c18 commit 47d7f1e042de292d66f482b76117970c1581c375 @clefebvre clefebvre committed Jan 25, 2017
Showing with 6 additions and 0 deletions.
  1. +6 −0 ubiquity/plugins/ubi-prepare.py
@@ -282,6 +282,12 @@ def __init__(self, controller, *args, **kwargs):
self.plugin_widgets = self.page
def show_insufficient_space_page(self, required, free):
+ from PyQt4 import QtGui
+ dialog = QtGui.QMessageBox(self.page)
+ dialog.setText(required)
+ dialog.setDetailedText(free)
+ dialog.exec_()
+ sys.exit(1)
return
def set_using_secureboot(self, secureboot):

1 comment on commit 47d7f1e

wxl commented on 47d7f1e Jan 31, 2017

FYI @clefebvre I just left a merge proposal upstream. I was nearly pulling my hair out over this today.

Please sign in to comment.