Import: fix erroneous flag
In 891fcbf520f28ef6016d6171eba83c6773efca00 boolean parameters were replaced by flags. Fix an error in this commit: IMPORT_IS_DOWNLOADED should be IMPORT_PREFER_IMPORTED. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
8fa156eb0d
commit
0f87a7073b
@ -518,7 +518,7 @@ void DownloadFromDCWidget::on_ok_clicked()
|
||||
auto data = thread.data();
|
||||
int flags = IMPORT_IS_DOWNLOADED;
|
||||
if (preferDownloaded())
|
||||
flags |= IMPORT_IS_DOWNLOADED;
|
||||
flags |= IMPORT_PREFER_IMPORTED;
|
||||
if (ui.createNewTrip->isChecked())
|
||||
flags |= IMPORT_ADD_TO_NEW_TRIP;
|
||||
Command::importDives(table, nullptr, flags, data->devName());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user