mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 07:53:08 +02:00
Protect again empty plugin
This commit is contained in:
parent
b4d3a2b79f
commit
808d336fe6
1 changed files with 2 additions and 2 deletions
|
@ -49,8 +49,8 @@ public:
|
||||||
SteamScriptingInterface(QObject* parent, SteamClientPlugin* plugin) : QObject(parent), _plugin(plugin) {}
|
SteamScriptingInterface(QObject* parent, SteamClientPlugin* plugin) : QObject(parent), _plugin(plugin) {}
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
bool isRunning() const { return _plugin->isRunning(); }
|
bool isRunning() const { return _plugin && _plugin->isRunning(); }
|
||||||
void openInviteOverlay() const { _plugin->openInviteOverlay(); }
|
void openInviteOverlay() const { if (_plugin) { _plugin->openInviteOverlay(); } }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SteamClientPlugin* _plugin;
|
SteamClientPlugin* _plugin;
|
||||||
|
|
Loading…
Reference in a new issue