Commit a756f341 authored by Pino Toscano's avatar Pino Toscano

Demote an error messagebox to stderr warning message

There is really no need to popup a message for that -- it will not be
useful to users anyway.
parent 6bd2a6d1
#include "searchengine.h" #include "searchengine.h"
#include <QMessageBox>
#include "docmetainfo.h" #include "docmetainfo.h"
#include "view.h" #include "view.h"
#include "searchhandler.h" #include "searchhandler.h"
...@@ -210,7 +208,7 @@ bool SearchEngine::initSearchHandlers() ...@@ -210,7 +208,7 @@ bool SearchEngine::initSearchHandlers()
khcDebug() << "SearchEngine::initSearchHandlers(): " << filename; khcDebug() << "SearchEngine::initSearchHandlers(): " << filename;
SearchHandler *handler = SearchHandler::initFromFile( filename ); SearchHandler *handler = SearchHandler::initFromFile( filename );
if ( !handler ) { if ( !handler ) {
QMessageBox::warning( mView->widget(), i18n("Handler"), i18n("Unable to initialize SearchHandler from file '%1'.", filename ) ); khcWarning() << "Unable to initialize SearchHandler from" << filename;
} else { } else {
QStringList documentTypes = handler->documentTypes(); QStringList documentTypes = handler->documentTypes();
QStringList::ConstIterator it; QStringList::ConstIterator it;
......
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