From 2264703db98c929c5076bfa3341812b6a33c7666 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 23 Oct 2010 14:00:24 +0900 Subject: [PATCH] don't apply toolbar hack on osx --- ankiqt/ui/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index c6fe7629d..dc62ff1a4 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -1763,7 +1763,7 @@ learnt today") self.removeToolBar(mw.toolBar) mw.toolBar.hide() ver = QtConfig.qt_version >> 8 - if ver >= 0x407: + if not sys.platform.startswith("darwin") and ver >= 0x407: # this became necessary in 4.7 or we end up with two toolbars mw.toolBar.deleteLater() mw.toolBar = QToolBar(self)