client: Fix lost unsaved highlights on Import
authorShane Synan <digitalcircuit36939@gmail.com>
Mon, 16 Jul 2018 21:47:29 +0000 (16:47 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 17 Jul 2018 17:57:45 +0000 (19:57 +0200)
commitcefad53d40b08c4271a2150533b747c3ca64b735
tree601ed2d08f5ee14df91c1fef9de79161774db05c
parent4b75d4e91978d8f34dafe9b488c86928cc160272
client: Fix lost unsaved highlights on Import

Save highlights before importing if changes exist to avoid losing
any unsaved rules when loading the highlight rule list from the
client.

Test case:
1.  Have at least 1 local highlight rule
2.  Add remote highlight rule, don't save
3.  Import local highlights
4.  Unsaved highlight rule gets deleted
src/qtui/settingspages/corehighlightsettingspage.cpp