src/3rdparty/webkit/WebKit/qt/WebCoreSupport/ChromeClientQt.cpp
branchRCL_3
changeset 5 d3bac044e0f0
parent 4 3b1da2848fc7
equal deleted inserted replaced
4:3b1da2848fc7 5:d3bac044e0f0
   279     FrameLoaderClientQt *fl = static_cast<FrameLoaderClientQt*>(f->loader()->client());
   279     FrameLoaderClientQt *fl = static_cast<FrameLoaderClientQt*>(f->loader()->client());
   280     bool rc = m_webPage->javaScriptPrompt(fl->webFrame(), (QString)message, (QString)defaultValue, &x);
   280     bool rc = m_webPage->javaScriptPrompt(fl->webFrame(), (QString)message, (QString)defaultValue, &x);
   281 
   281 
   282     // Fix up a quirk in the QInputDialog class. If no input happened the string should be empty
   282     // Fix up a quirk in the QInputDialog class. If no input happened the string should be empty
   283     // but it is null. See https://bugs.webkit.org/show_bug.cgi?id=30914.
   283     // but it is null. See https://bugs.webkit.org/show_bug.cgi?id=30914.
   284     if (rc && result.isNull())
   284     if (rc && x.isNull())
   285         result = String("");
   285         result = String("");
   286     else
   286     else
   287         result = x;
   287         result = x;
   288 
   288 
   289     return rc;
   289     return rc;