Commits

Yuya Nishihara  committed 6b11d60

bugreport: don't call static getSaveFileName() via dummy instance

  • Participants
  • Parent commits 4c9af76
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/bugreport.py

 
     def save(self):
         try:
-            fd = QFileDialog(self)
-            fname = fd.getSaveFileName(self,
+            fname = QFileDialog.getSaveFileName(self,
                         _('Save error report to'),
                         os.path.join(_safegetcwd(), 'bugreport.txt'),
                         _('Text files (*.txt)'))