Commits

Yuya Nishihara committed ea7a7d3

rename: fix cancel button to work

Comments (0)

Files changed (1)

tortoisehg/hgqt/rename.py

         self.rename_btn.clicked.connect(self.rename)
         self.detail_btn.clicked.connect(self.detail_clicked)
         self.close_btn.clicked.connect(self.close)
+        self.cancel_btn.clicked.connect(self.cancel_clicked)
 
         # main layout
         self.grid = QGridLayout()
         else:
             self.cmd.setShowOutput(True)
 
-    def cancel_clicked():
+    def cancel_clicked(self):
         self.cmd.cancel()
 
     def command_started(self):