Commit fd542bfb authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Fix crash when handling Xapian exceptions

parent cc3b2c26
......@@ -155,7 +155,7 @@ void SearchWidget::openStore(int idx)
void SearchWidget::xapianError(const Xapian::Error &e)
{
qCWarning(AKONADICONSOLE_LOG) << e.get_type() << QString::fromStdString(e.get_description()) << QString::fromStdString(e.get_error_string());
qCWarning(AKONADICONSOLE_LOG) << e.get_type() << QString::fromStdString(e.get_description()) << e.get_error_string();
QMessageBox::critical(this, QStringLiteral("Xapian error"),
QStringLiteral("%1: %2").arg(QString::fromUtf8(e.get_type()), QString::fromStdString(e.get_msg())));
}
......
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