140 def on_addArchivesButton_clicked(self): |
142 def on_addArchivesButton_clicked(self): |
141 """ |
143 """ |
142 Private slot to select plugin ZIP-archives via a file selection dialog. |
144 Private slot to select plugin ZIP-archives via a file selection dialog. |
143 """ |
145 """ |
144 dn = Preferences.getPluginManager("DownloadPath") |
146 dn = Preferences.getPluginManager("DownloadPath") |
145 archives = QFileDialog.getOpenFileNames( |
147 archives = E5FileDialog.getOpenFileNames( |
146 self, |
148 self, |
147 self.trUtf8("Select plugin ZIP-archives"), |
149 self.trUtf8("Select plugin ZIP-archives"), |
148 dn, |
150 dn, |
149 self.trUtf8("Plugin archive (*.zip)"), |
151 self.trUtf8("Plugin archive (*.zip)")) |
150 QFileDialog.DontUseNativeDialog) |
|
151 |
152 |
152 if archives: |
153 if archives: |
153 matchflags = Qt.MatchFixedString |
154 matchflags = Qt.MatchFixedString |
154 if not Utilities.isWindowsPlatform(): |
155 if not Utilities.isWindowsPlatform(): |
155 matchflags |= Qt.MatchCaseSensitive |
156 matchflags |= Qt.MatchCaseSensitive |