Launcher: use a more robust resource path
Some version of Qt seem to dislike the qrc:/// format, so use the single-slash format here.
This commit is contained in:
parent
47847a5a57
commit
7fe11b800a
2 changed files with 3 additions and 3 deletions
|
@ -164,7 +164,7 @@ void LauncherController::initQML()
|
|||
qmlRegisterType<RouteDiagram>("FlightGear", 1, 0, "RouteDiagram");
|
||||
qmlRegisterType<QmlRadioButtonGroup>("FlightGear", 1, 0, "RadioButtonGroup");
|
||||
|
||||
qmlRegisterSingletonType(QUrl("qrc:///qml/OverlayShared.qml"), "FlightGear", 1, 0, "OverlayShared");
|
||||
qmlRegisterSingletonType(QUrl("qrc:/qml/OverlayShared.qml"), "FlightGear", 1, 0, "OverlayShared");
|
||||
|
||||
QNetworkDiskCache* diskCache = new QNetworkDiskCache(this);
|
||||
SGPath cachePath = globals->get_fg_home() / "PreviewsCache";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
pragma Singleton
|
||||
import QtQuick 2.0
|
||||
import QtQml 2.0
|
||||
|
||||
QtObject {
|
||||
property var globalOverlay
|
||||
property var globalOverlay: nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue