Merge pull request #970 from manongjohn/fix_browswer_adding_task_crash
Fix crash when adding to task list from browser
This commit is contained in:
commit
cc9b960018
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue