mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Ensure openUrl() and openDocument() are no-ops in the headless backend
This commit is contained in:
parent
096fb0486f
commit
652841175d
@ -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…
x
Reference in New Issue
Block a user