Commits

Angel Ezquerra  committed 1ace022

sync: move "Save current URL" button to the left of the toolbar

This was suggested by Steve. It makes the save button more discoverable.

  • Participants
  • Parent commits 039f005
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/sync.py

         tbar.setStyleSheet(qtlib.tbstylesheet)
         tbar.setIconSize(QSize(16, 16))
         hbox.addWidget(tbar)
+
+        style = QApplication.style()
+        a = tbar.addAction(style.standardIcon(QStyle.SP_DialogSaveButton),
+                          _('Save'))
+        a.setToolTip(_('Save current URL under an alias'))
+        self.savebutton = a
+
         self.schemecombo = QComboBox()
         for s in self._schemes:
             self.schemecombo.addItem(s)
         tbar.addWidget(self.pathentry)
         tbar.addWidget(qtlib.Spacer(2, 2))
 
-        style = QApplication.style()
-        a = tbar.addAction(style.standardIcon(QStyle.SP_DialogSaveButton),
-                          _('Save'))
-        a.setToolTip(_('Save current URL under an alias'))
-        self.savebutton = a
-
         hbox = QHBoxLayout()
         hbox.setContentsMargins(0, 0, 0, 0)
         self.hgrctv = PathsTree(self, True)