'Run the following command ...' runs twice
Status: Inactive
Brought to you by:
debfx
When configuring a 'Run the following command when an update is found' in the global preferences, the command is ran *twice*.
The easy way to reproduce (on KDE) is enabling the setting and set it to
/usr/bin/kdialog --title "WebMonX" --msgbox "'%d' has changed"
Whenever a page changes, two kdialog boxes will pop up. Other desktops have similar dialog popup commands.
I am not a programmer, but I think this behaviour is caused by line 96 in src/core/Page.cpp:
connect(scheme, SIGNAL(requestFinished(bool)), SLOT(requestFinished(bool)));
I am on
Kubuntu 12.10 on x86_64
WebMonX 0.3.3
Not sure why it works, but apparently this issue is solved when I comment out the entire 'if (updated && .........' in Page.cpp on line 182. Seems like the same is done somewhere else in the code.