diff -r a2a54778dcf2 -r 59bae82bf176 eric7/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py --- a/eric7/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py Mon Dec 06 19:03:48 2021 +0100 +++ b/eric7/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py Mon Dec 06 20:24:00 2021 +0100 @@ -2661,8 +2661,12 @@ return if self.projectMode: - fname = self.vcs.splitPath(self.__filename)[0] - fname += "/{0}.diff".format(os.path.split(fname)[-1]) + if self.__filename is None: + fname = "{0}.diff".format(os.path.splitext( + ericApp().getObject("Project").getProjectFile())[0]) + else: + fname = self.vcs.splitPath(self.__filename)[0] + fname += "/{0}.diff".format(os.path.split(fname)[-1]) else: dname, fname = self.vcs.splitPath(self.__filename) if fname != '.':