diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-03-06 00:26:02 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-03-06 00:26:02 +0100 |
commit | 6aeb9406dd77ad066d7904a6f453aff019bb5838 (patch) | |
tree | de1de706d3a12c0e7eb631b6eae93d1ff3b4da77 /src/rekonqpage | |
parent | Just another crash recovery fix. (diff) | |
download | rekonq-6aeb9406dd77ad066d7904a6f453aff019bb5838.tar.xz |
kWarning --> kDebug
Diffstat (limited to 'src/rekonqpage')
-rw-r--r-- | src/rekonqpage/newtabpage.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/rekonqpage/newtabpage.cpp b/src/rekonqpage/newtabpage.cpp index 3cd79326..845dcf51 100644 --- a/src/rekonqpage/newtabpage.cpp +++ b/src/rekonqpage/newtabpage.cpp @@ -59,16 +59,19 @@ NewTabPage::NewTabPage(QWebFrame *frame) , m_url(KUrl()) { QString htmlFilePath = KStandardDirs::locate("data", "rekonq/htmls/home.html"); + QString imagesPath = QString("file://") + KGlobal::dirs()->findResourceDir("data", "rekonq/pics/bg.png") + QString("rekonq/pics"); QFile file(htmlFilePath); bool isOpened = file.open(QIODevice::ReadOnly); if (!isOpened) - kWarning() << "Couldn't open the home.html file"; - - QString imagesPath = QString("file://") + KGlobal::dirs()->findResourceDir("data", "rekonq/pics/bg.png") + QString("rekonq/pics"); - - m_html = file.readAll(); - m_html.replace(QString("%2"), imagesPath); + { + kDebug() << "Couldn't open the home.html file"; + } + else + { + m_html = file.readAll(); + m_html.replace(QString("%2"), imagesPath); + } } |