-
-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: "View website in reader mode" changes content of all tabs to its reader mode content #1300
Comments
I truncated the debug log from the entries that included the downloaded links and replaced home folder names as well as external urls. I couldn't find an exact spot where the "View website in reader mode" incident happened, but I would guess somewhere in the 16-20 s ballpark. If I find the time and/or someone could push me in the right direction where this is implemented in the application, I'm happy to contribute a fixing PR. |
My knowledge on Qt is limited as I have only ever read but never really written anything useful in Qt, but I guess since the Here is the code that defines the action on the "View website in reader mode" button: rssguard/src/librssguard/gui/webbrowser.cpp Lines 32 to 34 in 31a598c
rssguard/src/librssguard/gui/webbrowser.cpp Lines 164 to 167 in 31a598c
Here is the code that is run on a successful readabiled action (that is, the node-js module was already installed): rssguard/src/librssguard/network-web/readability.cpp Lines 111 to 144 in 31a598c
When the readability signal/slot is finished, it is connected to the rssguard/src/librssguard/gui/webbrowser.cpp Lines 90 to 91 in 31a598c
Which in turn is forwarded to one of the BrowserViewers (either rssguard/src/librssguard/gui/webviewers/qtextbrowser/textbrowserviewer.cpp Lines 481 to 494 in 31a598c
|
Okay, nevermind. Ater debugging I found that when clicking the "View website in reader mode" button, it will in fact call the rssguard/src/librssguard/gui/webviewers/webengine/webengineviewer.cpp Lines 142 to 144 in 31a598c
|
@dakralex Your deduction is wrond. This given line simply calls "setHtml" method implementation from base class from which WebEngineViewer derives. No static/singleton-like is invoked. That said, I am lately very very busy with my other projects but will look into all newly posted bugs/tickets eventually. Do not worry, RSS Guard is not dead. |
OK, there really was problem. Pushed the fix. Please wait for devbuild to compile and test. Then let me know the result. |
@martinrotter Wow, I didn't expect such a timely answer and didn't think RSSGuard was dead. I also hope that my writing style didn't offend you in any way, I was just interested in how the program works, look into it and maybe even fix it myself. But as I said, I'm a newbie on the intrinsic functionality of Qt and were mostly just guessing in a short period of time. I've just built the recent commit on my machine and it works, very nice! It works as expected now. Nonetheless, I want to say to you that I enjoy RSSGuard very much, so thank you very much for maintaining it. If you have some Qt-beginner-friendly issues on here I can help you with, don't hesitate to send me them - I wanted to get into Qt anyway but haven't found a project yet :). |
@dakralex No, not any problem my friend. Maybe phrasing my answer was too direct. No problems. Yes. This is is C++, just regular programming error I made, like hundreds of other errors in the app waiting for discovery. :D |
As for any C++ maintenance of RSS Guard, well. Start with something small. First, learn how to compile RSS Guard (which is fairly simple). Then just try to tweak small things and see their impact. C++ has rather steep learning curve, even with Qt involved. You can help with any opened issue you want. There are many issues which are relatively easy to solve but just outside of my time. and many others. |
Brief description of the issue
I have used the tab feature where I opened the links from one feed article in multiple tabs. If I click on any of these tabs and then press the "View website in reader mode", all the other tabs' content and the original article's content view is replaced with the reader view content of the tab I clicked the button at.
How to reproduce the bug?
What was the expected result?
It was expected that the reader mode view would only apply to the current tab and won't change the content of the other tabs.
What actually happened?
The tab where the reader mode was requested changed the content of all the other tabs' content, which required to reopen them again (+ the original feed article).
Debug log
https://pastebin.com/8av6Ge0X (expires in 1 month)
Operating system and version
The text was updated successfully, but these errors were encountered: