[Psi-Devel] Fwd: Psi Jabber Client - FS#531: Add 'Save as' context menu for vcard photo
Mircea Bardac
dev.list at mircea.bardac.net
Sun Feb 10 02:29:33 PST 2008
Hi,
Hal Rottenberg wrote:
> + if (!str.isEmpty())
> + {
> + QFileInfo fi(str);
> +
> PsiOptions::instance()->getOption("options.ui.last-used-open-path").toString()=fi.dirPath();
> + // Convert imge if required
> + QImage img(d->photo);
> + img.save(str);
> + }
I've seen Justin fixing a similar usage of PsiOptions in a recent commit:
http://dev.psi-im.org/websvn/comp.php?repname=Psi&path=%2F&compare[]=%2F@1008&compare[]=%2F@1009
I might be wrong though, but shouldn't that line be
PsiOptions::instance()->setOption(...) ?
(there might be more places where this happens)
Mircea
/IceRAM
More information about the Psi-Devel
mailing list