From eb1fff03f6007f5a87234a6ee91676dfecfe705f Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Fri, 15 Sep 2017 11:32:36 -0500 Subject: [PATCH] Main Window: Apply window style only if it's not None --- spyder/app/mainwindow.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py index 02b047f37a0..87770f41b80 100644 --- a/spyder/app/mainwindow.py +++ b/spyder/app/mainwindow.py @@ -2545,9 +2545,10 @@ def apply_settings(self): style_name = CONF.get('main', 'windows_style', self.default_style) style = QStyleFactory.create(style_name) - style.setProperty('name', style_name) - qapp.setStyle(style) - + if style is not None: + style.setProperty('name', style_name) + qapp.setStyle(style) + default = self.DOCKOPTIONS if CONF.get('main', 'vertical_tabs'): default = default|QMainWindow.VerticalTabs