https://bugs.kde.org/show_bug.cgi?id=487905

Jack Hill <jackhill3...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/mult
                   |                            |imedia/elisa/-/commit/d8bd1
                   |                            |a35a835d44d28a07e7e671e7cfc
                   |                            |29d07073
         Resolution|---                         |FIXED

--- Comment #13 from Jack Hill <jackhill3...@gmail.com> ---
Git commit d8bd1a35a835d44d28a07e7e671e7cfc29d07073 by Jack Hill.
Committed on 07/06/2024 at 19:53.
Pushed by jackh into branch 'master'.

Fix DBus service activation

Previously this was supposed to be started in ElisaApplication::create,
except it wasn't started because this function was never called.

https://doc.qt.io/qt-6/qqmlengine.html#QML_SINGLETON

> By default, each QQmlEngine will try to create a singleton instance
> using either the type's default constructor or a static factory
> function of the signature T *create(QQmlEngine *, QJSEngine *) when
> the type is first accessed. If both do exist and are accessible, the
> default constructor is preferred.

Test-plan:
Run kdesrc-build --run elisa. After the window is launched, run the same
command in a separate terminal session.

Before: two instances of Elisa opened

Now: only one instance of Elisa opens.

Amends fc374017

M  +0    -23   src/elisaapplication.cpp
M  +0    -2    src/elisaapplication.h
M  +15   -1    src/main.cpp

https://invent.kde.org/multimedia/elisa/-/commit/d8bd1a35a835d44d28a07e7e671e7cfc29d07073

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to