Fix crash when adding to task list from browser

This commit is contained in:
manongjohn 2022-04-14 01:15:55 -04:00
parent 91a511ffa0
commit 202611c7aa

View file

@ -239,6 +239,11 @@ void FileSelection::enableCommands() {
//------------------------------------------------------------------------
void FileSelection::addToBatchRenderList() {
if (!BatchesController::instance()->getTasksTree()) {
QAction *taskPopup = CommandManager::instance()->getAction(MI_OpenTasks);
taskPopup->trigger();
}
std::vector<TFilePath> files;
getSelectedFiles(files);
int i;
@ -251,6 +256,11 @@ void FileSelection::addToBatchRenderList() {
//------------------------------------------------------------------------
void FileSelection::addToBatchCleanupList() {
if (!BatchesController::instance()->getTasksTree()) {
QAction *taskPopup = CommandManager::instance()->getAction(MI_OpenTasks);
taskPopup->trigger();
}
std::vector<TFilePath> files;
getSelectedFiles(files);
int i;