this should be the diff to be tested:
diff --git a/softwareproperties/qt/SoftwarePropertiesQt.py b/softwareproperties/qt/SoftwarePropertiesQt.py index 8172e25..b210323 100644 --- a/softwareproperties/qt/SoftwarePropertiesQt.py +++ b/softwareproperties/qt/SoftwarePropertiesQt.py @@ -709,8 +709,7 @@ class SoftwarePropertiesQt(SoftwareProperties): home = QDir.homePath() if "SUDO_USER" in os.environ: home = os.path.expanduser("~%s" % os.environ["SUDO_USER"]) - url = KUrl.fromPath(home) - filename = KFileDialog.getOpenFileName(url, 'application/pgp-keys', self.userinterface, _("Import key")) + filename = QFileDialog.getOpenFileName(self.userinterface, _("Import key"), home, 'application/pgp-keys') if filename: if not self.add_key(filename): title = _("Error importing selected file")
this should be the diff to be tested:
diff --git a/softwareprope rties/qt/ SoftwarePropert iesQt.py b/softwareprope rties/qt/ SoftwarePropert iesQt.py rties/qt/ SoftwarePropert iesQt.py rties/qt/ SoftwarePropert iesQt.py iesQt(SoftwareP roperties) : expanduser( "~%s" % os.environ[ "SUDO_USER" ]) getOpenFileName (url, 'application/ pgp-keys' , self.userinterface, _("Import key")) getOpenFileName (self.userinter face, _("Import key"), home, 'application/ pgp-keys' ) key(filename) :
index 8172e25..b210323 100644
--- a/softwareprope
+++ b/softwareprope
@@ -709,8 +709,7 @@ class SoftwarePropert
home = QDir.homePath()
if "SUDO_USER" in os.environ:
home = os.path.
- url = KUrl.fromPath(home)
- filename = KFileDialog.
+ filename = QFileDialog.
if filename:
if not self.add_
title = _("Error importing selected file")