Comment 5 for bug 1795278

Revision history for this message
Hans P. Möller (hmollercl) wrote :

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")