Commits

Yuya Nishihara committed 789f5ad

bugreport: don't close main dialog by save action

Because Save button is also AcceptRole, it closes the report dialog
unexpectedly.

  • Participants
  • Parent commits 6b11d60
  • Branches stable
  • Tags 2.7

Comments (0)

Files changed (1)

File tortoisehg/hgqt/bugreport.py

         # dialog buttons
         BB = QDialogButtonBox
         bb = QDialogButtonBox(BB.Ok|BB.Save)
-        bb.accepted.connect(self.accept)
+        bb.button(BB.Ok).clicked.connect(self.accept)
         bb.button(BB.Save).clicked.connect(self.save)
         bb.button(BB.Ok).setDefault(True)
         bb.addButton(_('Copy'), BB.HelpRole).clicked.connect(self.copyText)