D11051: Remembering side navigation panel state
Albert Astals Cid
noreply at phabricator.kde.org
Tue Mar 13 22:44:54 UTC 2018
aacid added a comment.
In D11051#222803 <https://phabricator.kde.org/D11051#222803>, @dileepsankhla wrote:
> In D11051#222205 <https://phabricator.kde.org/D11051#222205>, @aacid wrote:
>
> > Also i'm not convinced it's a good idea to save the settings in sidebar.cpp but read them in part.cpp, seems a bit asymmetrical, can you explain your reasoning for it?
>
>
> Initially, I thought of reading and saving the settings in `part.cpp` but I can't access `m_sidebar` as to save its last state inside the destructor `Part::~Part` and it gives me segfault. Hence I am saving them in `Sidebar::~Sidebar`.
I just added
qDebug() << m_sidebar->isCollapsed();
to Part destructor and it's all fine, i don't see why you would get a segfault, and if you did, you should investigate why, if you thought that Part destructor was a better place instead of just saying "meh i've no idea why it happens, let's put it in a worse place"
REPOSITORY
R223 Okular
REVISION DETAIL
https://phabricator.kde.org/D11051
To: dileepsankhla, #okular
Cc: aacid, sander, #okular, michaelweghorn, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20180313/b1d57d0c/attachment.html>
More information about the Okular-devel
mailing list