euroelessar / qutim

Module based Instant Messenger
http://qutim.org/
Other
141 stars 32 forks source link

Crash in case of read-only config #385

Open nico-izo opened 7 years ago

nico-izo commented 7 years ago

If ~/.config/qutim/config/profile.json is read-only, qutIM will crash during start

Q_ASSERT here: https://github.com/euroelessar/qutim/blob/master/src/lib/qutim/config.cpp#L1354

    Q_ASSERT(atom->isMap() && !atom->isReadOnly());

We probably should either print nice message or have in-memory config without being able to save it.