--- a/eric6/UI/UserInterface.py Mon Apr 12 18:25:52 2021 +0200 +++ b/eric6/UI/UserInterface.py Mon Apr 12 19:05:23 2021 +0200 @@ -200,7 +200,7 @@ self.maxEditorPathLen = Preferences.getUI("CaptionFilenameLength") self.locale = locale - self.__noOpenAtStartup = noOpenAtStartup + self.__openAtStartup = not noOpenAtStartup self.__noCrashOpenAtStartup = noCrashOpenAtStartup self.__disableCrashSession = disableCrashSession self.__disabledPlugins = disabledPlugins[:] @@ -1392,7 +1392,7 @@ # no args, return if args is None: - if not self.__noOpenAtStartup: + if self.__openAtStartup: self.__openOnStartup() return @@ -1458,10 +1458,9 @@ if argsStr is not None: self.debuggerUI.setArgvHistory(argsStr) - if opens == 0: + if opens == 0 and self.__openAtStartup: # no files, project or multiproject was given - if not self.__noOpenAtStartup: - self.__openOnStartup() + self.__openOnStartup() def processInstallInfoFile(self): """ @@ -6952,9 +6951,8 @@ if self.__webBrowserProcess is not None: self.__webBrowserShutdown() - if self.irc is not None: - if not self.irc.shutdown(): - return False + if self.irc is not None and not self.irc.shutdown(): + return False sessionCreated = self.__writeSession()