mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 04:55:57 +01:00
Ensure openUrl() and openDocument() are no-ops in the headless backend
This commit is contained in:
parent
096fb0486f
commit
652841175d
1 changed files with 2 additions and 0 deletions
|
|
@ -37,6 +37,8 @@ class GenericUnixServices : public QGenericUnixServices {
|
|||
* does not make sense anyway.
|
||||
*/
|
||||
QByteArray desktopEnvironment() const { return QByteArrayLiteral("UNKNOWN"); }
|
||||
bool openUrl(const QUrl &url) { Q_UNUSED(url); return false; }
|
||||
bool openDocument(const QUrl &url) { Q_UNUSED(url); return false; }
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue