mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:03:53 +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) {}
|
||||
|
||||
public slots:
|
||||
bool isRunning() const { return _plugin->isRunning(); }
|
||||
void openInviteOverlay() const { _plugin->openInviteOverlay(); }
|
||||
bool isRunning() const { return _plugin && _plugin->isRunning(); }
|
||||
void openInviteOverlay() const { if (_plugin) { _plugin->openInviteOverlay(); } }
|
||||
|
||||
private:
|
||||
SteamClientPlugin* _plugin;
|
||||
|
|
Loading…
Reference in a new issue