From 4da0bffeee05c4589ae4d0addc7c695e31669990 Mon Sep 17 00:00:00 2001 From: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> Date: Sun, 8 Feb 2026 10:08:10 +0100 Subject: Add instance manager to plugin API (#2335) --- src/envshortcut.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/envshortcut.cpp') diff --git a/src/envshortcut.cpp b/src/envshortcut.cpp index 204435b7..be696105 100644 --- a/src/envshortcut.cpp +++ b/src/envshortcut.cpp @@ -132,7 +132,7 @@ Shortcut::Shortcut() : m_iconIndex(0) {} Shortcut::Shortcut(const Executable& exe) : Shortcut() { - const auto i = *InstanceManager::singleton().currentInstance(); + const auto& i = *InstanceManager::singleton().currentInstance(); m_name = MOBase::sanitizeFileName(exe.title()); m_target = QFileInfo(qApp->applicationFilePath()).absoluteFilePath(); -- cgit v1.3.1