Commits

Yuya Nishihara committed 091dd27

wctxactions: request to refresh only if copy/rename finished successfully

  • Participants
  • Parent commits 665cd95

Comments (0)

Files changed (1)

tortoisehg/hgqt/wctxactions.py

     assert len(files) == 1
     dlg = RenameDialog(repoagent, parent, hglib.tounicode(files[0]),
                        iscopy=True)
-    dlg.exec_()
-    return True
+    return dlg.exec_() == 0
 
 def rename(parent, repoagent, files):
     from tortoisehg.hgqt.rename import RenameDialog
     assert len(files) == 1
     dlg = RenameDialog(repoagent, parent, hglib.tounicode(files[0]))
-    dlg.exec_()
-    return True
+    return dlg.exec_() == 0
 
 def unmark(parent, ui, repo, files):
     ms = merge.mergestate(repo)