575 return False |
575 return False |
576 |
576 |
577 self.pfile = os.path.abspath(fn) |
577 self.pfile = os.path.abspath(fn) |
578 self.ppath = os.path.abspath(os.path.dirname(fn)) |
578 self.ppath = os.path.abspath(os.path.dirname(fn)) |
579 if Utilities.isWindowsPlatform(): |
579 if Utilities.isWindowsPlatform(): |
580 self.ppathRe = re.compile(re.escape(self.ppath + os.sep), re.IGNORECASE ) |
580 self.ppathRe = re.compile(re.escape(self.ppath + os.sep), re.IGNORECASE) |
581 else: |
581 else: |
582 self.ppathRe = re.compile(re.escape(self.ppath + os.sep)) |
582 self.ppathRe = re.compile(re.escape(self.ppath + os.sep)) |
583 |
583 |
584 # insert filename into list of recently opened projects |
584 # insert filename into list of recently opened projects |
585 self.__syncRecent() |
585 self.__syncRecent() |
734 |
734 |
735 if res: |
735 if res: |
736 self.pfile = os.path.abspath(fn) |
736 self.pfile = os.path.abspath(fn) |
737 self.ppath = os.path.abspath(os.path.dirname(fn)) |
737 self.ppath = os.path.abspath(os.path.dirname(fn)) |
738 if Utilities.isWindowsPlatform(): |
738 if Utilities.isWindowsPlatform(): |
739 self.ppathRe = re.compile(re.escape(self.ppath + os.sep), re.IGNORECASE ) |
739 self.ppathRe = re.compile(re.escape(self.ppath + os.sep), re.IGNORECASE) |
740 else: |
740 else: |
741 self.ppathRe = re.compile(re.escape(self.ppath + os.sep)) |
741 self.ppathRe = re.compile(re.escape(self.ppath + os.sep)) |
742 self.name = os.path.splitext(os.path.basename(fn))[0] |
742 self.name = os.path.splitext(os.path.basename(fn))[0] |
743 self.setDirty(False) |
743 self.setDirty(False) |
744 |
744 |
2253 |
2253 |
2254 dlg = PropertiesDialog(self, True) |
2254 dlg = PropertiesDialog(self, True) |
2255 if dlg.exec_() == QDialog.Accepted: |
2255 if dlg.exec_() == QDialog.Accepted: |
2256 self.closeProject() |
2256 self.closeProject() |
2257 dlg.storeData() |
2257 dlg.storeData() |
|
2258 if Utilities.isWindowsPlatform(): |
|
2259 self.ppathRe = re.compile(re.escape(self.ppath + os.sep), re.IGNORECASE) |
|
2260 else: |
|
2261 self.ppathRe = re.compile(re.escape(self.ppath + os.sep)) |
2258 self.pdata["VCS"] = ['None'] |
2262 self.pdata["VCS"] = ['None'] |
2259 self.opened = True |
2263 self.opened = True |
2260 if not self.pdata["FILETYPES"]: |
2264 if not self.pdata["FILETYPES"]: |
2261 self.initFileTypes() |
2265 self.initFileTypes() |
2262 self.setDirty(True) |
2266 self.setDirty(True) |