set maximum width of status messages to prevent main window from getting really wide
[sface.git] / sface / sfirenew.py
index 682d09a..47ddf2a 100644 (file)
@@ -57,7 +57,7 @@ class SfiRenewer(QObject):
             return
 
         # we have to force sfi.py to download an updated slice credential
-        sliceCredName = os.path.expanduser("~/.sfi/slice_" + self.hrn.split(".")[-1] + ".cred")
+        sliceCredName = config.fullpath("slice_" + self.hrn.split(".")[-1] + ".cred")
         if os.path.exists(sliceCredName):
             os.remove(sliceCredName)
 
@@ -104,6 +104,7 @@ class RenewWindow(QDialog):
         self.duration.setCurrentIndex(0)
 
         self.status = QLabel("")
+        self.status.setMaximumWidth(640)
 
         self.buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel)
         self.buttonBox.button(QDialogButtonBox.Ok).setDefault(True)