Skip to content

Commit

Permalink
do not show device dialog for single opened mtp device
Browse files Browse the repository at this point in the history
  • Loading branch information
whoozle committed Dec 29, 2020
1 parent 3f88b72 commit a3204c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qt/devicesdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ int DevicesDialog::exec()
if (_devices.empty())
return QDialog::Rejected;

if (_devices.size() == 1 && _devices.front().Device)
{
return QDialog::Accepted;
}

return QDialog::exec();
}

Expand Down

0 comments on commit a3204c8

Please sign in to comment.