mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-27 01:54:06 +00:00
Replace code with that proposed by Zas
This commit is contained in:
@@ -799,12 +799,9 @@ class MainWindow(QtGui.QMainWindow):
|
||||
|
||||
def open_folder(self):
|
||||
files = self.tagger.get_files_from_objects(self.selected_objects)
|
||||
opened = set()
|
||||
for file in files:
|
||||
url = self._openUrl(os.path.dirname(file.filename))
|
||||
if not url in opened:
|
||||
QtGui.QDesktopServices.openUrl(url)
|
||||
opened.add(url)
|
||||
folders = set([os.path.realpath(os.path.dirname(f.filename)) for f in files])
|
||||
for folder in folders:
|
||||
QtGui.QDesktopServices.openUrl(self._openUrl(folder))
|
||||
|
||||
def show_analyze_settings_info(self):
|
||||
ret = QtGui.QMessageBox.question(self,
|
||||
|
||||
Reference in New Issue
Block a user