diff src/mainwindow.cpp @ 572:88ec0ae91dcc

Update search in history only if there are search terms; don't use spacer in toolbar on Mac
author Chris Cannam
date Tue, 06 Mar 2012 14:24:48 +0000
parents c2e212ab0068
children fa242885a233
line wrap: on
line diff
--- a/src/mainwindow.cpp	Wed Feb 29 15:24:10 2012 +0000
+++ b/src/mainwindow.cpp	Tue Mar 06 14:24:48 2012 +0000
@@ -3061,9 +3061,13 @@
 
     m_repoToolBar = addToolBar(tr("Remote"));
     m_repoToolBar->setIconSize(QSize(sz, sz));
-    m_repoToolBar->addWidget(new QLabel(spacer));
+    if (spacingReqd) {
+        m_repoToolBar->addWidget(new QLabel(spacer));
+    }
     m_repoToolBar->addAction(m_openAct);
-    m_repoToolBar->addWidget(new QLabel(spacer));
+    if (spacingReqd) {
+        m_repoToolBar->addWidget(new QLabel(spacer));
+    }
     m_repoToolBar->addSeparator();
     m_repoToolBar->addAction(m_hgIncomingAct);
     m_repoToolBar->addAction(m_hgPullAct);