403 ex = selectedFilter.split("(*")[1].split(")")[0] |
403 ex = selectedFilter.split("(*")[1].split(")")[0] |
404 if ex: |
404 if ex: |
405 fname += ex |
405 fname += ex |
406 |
406 |
407 if os.path.exists(fname): |
407 if os.path.exists(fname): |
408 res = E5MessageBox.warning(self, |
408 res = E5MessageBox.yesNo(self, |
409 self.trUtf8("New Resource"), |
409 self.trUtf8("New Resource"), |
410 self.trUtf8("The file already exists! Overwrite it?"), |
410 self.trUtf8("The file already exists! Overwrite it?"), |
411 QMessageBox.StandardButtons(\ |
411 type_ = E5MessageBox.Warning) |
412 QMessageBox.No | \ |
412 if not res: |
413 QMessageBox.Yes), |
|
414 QMessageBox.No) |
|
415 if res != QMessageBox.Yes: |
|
416 # user selected to not overwrite |
413 # user selected to not overwrite |
417 return |
414 return |
418 |
415 |
419 try: |
416 try: |
420 if self.project.useSystemEol(): |
417 if self.project.useSystemEol(): |