Commit daa8a2da authored by lars's avatar lars

Fix my last commit to actually work in all cases.



git-svn-id: svn://svn.chromium.org/blink/trunk@18917 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent e58f9dd4
2007-01-17 Lars Knoll <lars@trolltech.com>
Fix my last commit to actually work in all cases.
* DumpRenderTree/DumpRenderTree.qtproj/DumpRenderTree.cpp:
(WebCore::DumpRenderTree::readStdin):
2007-01-17 Lars Knoll <lars@trolltech.com> 2007-01-17 Lars Knoll <lars@trolltech.com>
Reviewed by Maciej Reviewed by Maciej
......
...@@ -112,17 +112,15 @@ void DumpRenderTree::readStdin(int /* socket */) ...@@ -112,17 +112,15 @@ void DumpRenderTree::readStdin(int /* socket */)
{ {
if (m_loading) if (m_loading)
fprintf(stderr, "=========================== still loading\n"); fprintf(stderr, "=========================== still loading\n");
if (m_stdin->atEnd())
quit();
// Read incoming data from stdin... // Read incoming data from stdin...
QByteArray line = m_stdin->readLine(); QByteArray line = m_stdin->readLine();
if (line.endsWith('\n')) if (line.endsWith('\n'))
line.truncate(line.size()-1); line.truncate(line.size()-1);
//fprintf(stderr, "\n opening %s\n", line.constData()); //fprintf(stderr, "\n opening %s\n", line.constData());
if (!line.isEmpty()) if (line.isEmpty())
open(QUrl(QString(line))); quit();
open(QUrl(QString(line)));
} }
void DumpRenderTree::readSkipFile() void DumpRenderTree::readSkipFile()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment