communi / communi-desktop

An IRC client for desktop environments
https://communi.github.io/
BSD 3-Clause "New" or "Revised" License
57 stars 22 forks source link

Reload theme when changed #114

Closed gdamjan closed 8 years ago

gdamjan commented 8 years ago

ThemeInfo got a new pricate entry to remember the file it loaded, and a new method reload() that calls load() with the original filename.

gdamjan commented 8 years ago

ps. I'm failry a newbie with Qt/C++ so, is d.filePath = filePath; ok, or I need a copy of the QString?

jpnurmi commented 8 years ago

is d.filePath = filePath; ok, or I need a copy of the QString?

Looks good. This actually makes a (shallow) copy of the string.