diff -r 6d8d39753c82 -r 72b32daeb8d6 Plugins/VcsPlugins/vcsPySvn/subversion.py --- a/Plugins/VcsPlugins/vcsPySvn/subversion.py Mon Aug 30 20:16:34 2010 +0200 +++ b/Plugins/VcsPlugins/vcsPySvn/subversion.py Tue Aug 31 12:17:02 2010 +0200 @@ -16,6 +16,7 @@ from PyQt4.QtGui import * from E5Gui.E5Application import e5App +from E5Gui import E5MessageBox from VCS.VersionControl import VersionControl @@ -211,7 +212,7 @@ """ success = self.vcsImport(vcsDataDict, project.ppath)[0] if not success: - QMessageBox.critical(None, + E5MessageBox.critical(self.__ui, self.trUtf8("Create project in repository"), self.trUtf8("""The project could not be created in the repository.""" """ Maybe the given repository doesn't exist or the""" @@ -233,7 +234,7 @@ if not os.path.isfile(pfn): pfn += "z" if not os.path.isfile(pfn): - QMessageBox.critical(None, + E5MessageBox.critical(self.__ui, self.trUtf8("New project"), self.trUtf8("""The project could not be checked out of the""" """ repository.<br />""" @@ -917,7 +918,7 @@ reposURL = self.svnGetReposName(dname) if reposURL is None: - QMessageBox.critical(None, + E5MessageBox.critical(self.__ui, self.trUtf8("Subversion Error"), self.trUtf8("""The URL of the project repository could not be""" """ retrieved from the working copy. The tag operation will""" @@ -941,7 +942,7 @@ if self.otherData["standardLayout"]: rx_base = QRegExp('(.+)/(trunk|tags|branches).*') if not rx_base.exactMatch(reposURL): - QMessageBox.critical(None, + E5MessageBox.critical(self.__ui, self.trUtf8("Subversion Error"), self.trUtf8("""The URL of the project repository has an""" """ invalid format. The tag operation will""" @@ -1030,7 +1031,7 @@ reposURL = self.svnGetReposName(dname) if reposURL is None: - QMessageBox.critical(None, + E5MessageBox.critical(self.__ui, self.trUtf8("Subversion Error"), self.trUtf8("""The URL of the project repository could not be""" """ retrieved from the working copy. The switch operation will""" @@ -1054,7 +1055,7 @@ if self.otherData["standardLayout"]: rx_base = QRegExp('(.+)/(trunk|tags|branches).*') if not rx_base.exactMatch(reposURL): - QMessageBox.critical(None, + E5MessageBox.critical(self.__ui, self.trUtf8("Subversion Error"), self.trUtf8("""The URL of the project repository has an""" """ invalid format. The switch operation will""" @@ -1526,7 +1527,7 @@ if dlg.exec_() == QDialog.Accepted: propName, propValue, recurse = dlg.getData() if not propName: - QMessageBox.critical(None, + E5MessageBox.critical(self.__ui, self.trUtf8("Subversion Set Property"), self.trUtf8("""You have to supply a property name. Aborting.""")) return @@ -1577,7 +1578,7 @@ propName, recurse = dlg.getData() if not propName: - QMessageBox.critical(None, + E5MessageBox.critical(self.__ui, self.trUtf8("Subversion Delete Property"), self.trUtf8("""You have to supply a property name. Aborting.""")) return @@ -2044,4 +2045,4 @@ @param interval check interval for the monitor thread in seconds (integer) @return reference to the monitor thread (QThread) """ - return SvnStatusMonitorThread(interval, project, self) + return SvnStatusMonitorThread(interval, project, self) \ No newline at end of file