Benji York avatar Benji York committed a45c1d6

work around a nasty KDE debug message generated when we don't provide a parent window

Comments (0)

Files changed (2)

 # cursor anywhere in the version list and (in normal mode) type "vip:sort"
 # without the quotes.)
 
+distribute = 0.6.14
 setuptools = 0.6c11
 z3c.recipe.scripts = 1.0.1
 zc.buildout = 1.5.2

keyring/backend.py

     # KDE wants us to instantiate an application object.
     app = qt_module.QApplication([])
     try:
+        window = QtGui.QWidget()
         kwallet = kwallet_module.openWallet(
-            kwallet_module.NetworkWallet(), kwallet_module.Synchronous)
+            kwallet_module.NetworkWallet(),
+            window.winId(),
+            kwallet_module.Synchronous)
         if kwallet is not None:
             if not kwallet.hasFolder('Python'):
                 kwallet.createFolder('Python')
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.