From 7e0032cb9522c1befc2d93f1db771b5a3788799c Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Wed, 29 Jun 2016 17:39:49 -0700 Subject: [PATCH] search: prepare for PyQt5 Use qtutils.open_files() instead of calling into Qt directly so that we are protected by upcoming PyQt5-related changes. Related-to: #232 Signed-off-by: David Aguilar --- cola/widgets/search.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cola/widgets/search.py b/cola/widgets/search.py index 51191ae8..728b4160 100644 --- a/cola/widgets/search.py +++ b/cola/widgets/search.py @@ -310,8 +310,7 @@ class Search(SearchWidget): self.commit_text.setText('') def browse_callback(self): - paths = QtGui.QFileDialog.getOpenFileNames(self, - N_('Choose Path(s)')) + paths = qtutils.open_files(N_('Choose Path(s)')) if not paths: return filepaths = [] -- 2.11.4.GIT