Where does the segfault happen?
You may provide a backtrace.
gdb ./mixxx
> run
~ segfault here
> bt
----
I would prefer not to calculate the current skin over and over again in each Library feature for each getIcon() call
What about piping it thought
src/skin/legacyskinparser.cpp
Library::bindSidebarWidget
to SidebarModel
You may use
QIcon getIcon(QString skinPath)
then or move it to SidebarModel
Do you have a clue, how often getIcon() is called?
If it is called very often, you may consider to cache the Icon somewhere.
Where does the segfault happen?
You may provide a backtrace.
gdb ./mixxx
> run
~ segfault here
> bt
----
I would prefer not to calculate the current skin over and over again in each Library feature for each getIcon() call legacyskinparse r.cpp :bindSidebarWid get
What about piping it thought
src/skin/
Library:
to SidebarModel
You may use
QIcon getIcon(QString skinPath)
then or move it to SidebarModel
Do you have a clue, how often getIcon() is called?
If it is called very often, you may consider to cache the Icon somewhere.