Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Setting list settings via C API #1944
I've mentally stepped through the source code in reflect.h and reflect.cc to see how I should use it but I'm having some issues. If I call wkhtmltopdf_set_object_setting and try to set "load.cookies.append", I get a response of 1, indicating success. That should mean an element was added. So then, I call the method and try to set "load.cookies" to a comma separated value like "my_cookie_name,mycookievalue" but I get a response of 0, indicating failure.
It seems from the source that the QPair<QString, QString> reflection implementation might be faulty, in that it seemingly returns false unless the length of the splitted value is 0, when it should check that the length is greater than 1 or maybe equal to 2 to support the subsequent lines of code.
Let me know if I'm doing something wrong. I might also get brave and try to contribute ;)
This was referenced
Sep 7, 2014
Line of code reference for the suspected comma splitting bug:
Line of code references for the suspected 'append/prepend' mixup:
The files were "NetworkStateNotifierPrivate.h" and "SocketHandlerPrivate.h". They don't show up in the link I gave you but I do see them locally. Would you have any words of wisdom for me?