Use c style parsing of embed winid, to allow numbers like 0x

svn path=/trunk/KDE/kdebase/apps/; revision=848338
This commit is contained in:
John Tapsell 2008-08-17 12:44:20 +00:00
parent 43fc3b79b7
commit e7a352224f

View file

@ -126,7 +126,7 @@ static int directCommand(KCmdLineArgs *args)
WId id = 0;
if (embed) {
bool ok;
long l = QString(args->getOption("embed")).toLong(&ok);
long l = QString(args->getOption("embed")).toLong(&ok,0);
if (ok)
id = (WId)l;
}