Commits

Yuya Nishihara committed b570d7a

grep: move window attributes to stand-alone dialog

They are no-op since 9ee544e7504f.

Comments (0)

Files changed (1)

tortoisehg/hgqt/grep.py

             mainvbox.setContentsMargins(0, 0, 0, 0)
             self.setLayout(mainvbox)
         else:
-            self.setWindowTitle(_('TortoiseHg Search'))
-            self.resize(800, 550)
             self.stbar = cmdui.ThgStatusBar()
             mainvbox.setContentsMargins(5, 5, 5, 5)
             outervbox = QVBoxLayout()
         super(SearchDialog, self).__init__(parent)
         self.setWindowFlags(Qt.Window)
         self.setWindowIcon(qtlib.geticon('view-filter'))
+        self.setWindowTitle(_('TortoiseHg Search'))
         self.setLayout(QVBoxLayout(self))
         self._searchwidget = SearchWidget(repoagent, upats, parent=self, **opts)
         self.layout().addWidget(self._searchwidget)
+        self.resize(800, 550)
 
     def closeEvent(self, event):
         if not self._searchwidget.canExit():