Commits

Yuya Nishihara  committed e55a922

qtlib: fix wrong parent reference on savefiles failure

  • Participants
  • Parent commits a752837
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/qtlib.py

                 commands.cat(repo.ui, repo, curfile, rev=rev,
                              output=hglib.fromunicode(result))
             except (util.Abort, IOError), e:
-                QMessageBox.critical(self, _('Unable to save file'),
+                QMessageBox.critical(parent, _('Unable to save file'),
                                      hglib.tounicode(str(e)))
         finally:
             os.chdir(cwd)