mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Build changes
- Add support for embedded Linux without X, dbus, udisks, ntp, etc. - Misc minor changes
This commit is contained in:
parent
71eefa47cf
commit
5b072f3196
13 changed files with 189 additions and 222 deletions
|
@ -178,6 +178,7 @@ bool DownloadThread::_openAndPrepareDevice()
|
|||
if (!_file.open(QIODevice::ReadWrite | QIODevice::Unbuffered))
|
||||
{
|
||||
#ifdef Q_OS_LINUX
|
||||
#ifndef QT_NO_DBUS
|
||||
/* Opening device directly did not work, ask udisks2 to do it for us,
|
||||
* if necessary prompting for authorization */
|
||||
UDisks2Api udisks;
|
||||
|
@ -187,11 +188,10 @@ bool DownloadThread::_openAndPrepareDevice()
|
|||
_file.open(fd, QIODevice::ReadWrite | QIODevice::Unbuffered, QFileDevice::AutoCloseHandle);
|
||||
}
|
||||
else
|
||||
{
|
||||
#endif
|
||||
{
|
||||
emit error(tr("Cannot open storage device '%1'.").arg(QString(_filename)));
|
||||
return false;
|
||||
#ifdef Q_OS_LINUX
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue