mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-08 11:11:51 +00:00
GUI: merge: fix infinite loop adding new settings after dropping files
This commit is contained in:
parent
80727a50c7
commit
cf975b3176
@ -788,6 +788,11 @@ Tab::addOrAppendFiles(bool append) {
|
||||
addOrAppendFiles(append, fileNames, selectedSourceFile());
|
||||
}
|
||||
|
||||
void
|
||||
Tab::addFiles(QStringList const &fileNames) {
|
||||
addOrAppendFiles(false, fileNames, QModelIndex{});
|
||||
}
|
||||
|
||||
void
|
||||
Tab::addOrAppendFiles(bool append,
|
||||
QStringList const &fileNames,
|
||||
|
@ -63,6 +63,7 @@ public:
|
||||
virtual QString title() const;
|
||||
virtual void load(QString const &fileName);
|
||||
virtual void cloneConfig(MuxConfig const &config);
|
||||
virtual void addFiles(QStringList const &fileNames);
|
||||
|
||||
signals:
|
||||
void removeThisTab();
|
||||
|
@ -329,7 +329,7 @@ Tool::addMultipleFilesToNewSettings(QStringList const &fileNames,
|
||||
auto tab = currentTab();
|
||||
Q_ASSERT(!!tab);
|
||||
|
||||
tab->addFilesToBeAddedOrAppendedDelayed(fileNamesToAdd);
|
||||
tab->addFiles(fileNamesToAdd);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user