Commit 64e40153 authored by Thomas Eschenbacher's avatar Thomas Eschenbacher
Browse files

(minor improvement for debugging installation problems with menus.config)

parent 77273e87
...@@ -209,6 +209,15 @@ bool Kwave::FileContext::init(Kwave::TopWidget *top_widget) ...@@ -209,6 +209,15 @@ bool Kwave::FileContext::init(Kwave::TopWidget *top_widget)
)); ));
menufile.open(QIODevice::ReadOnly); menufile.open(QIODevice::ReadOnly);
QTextStream stream(&menufile); QTextStream stream(&menufile);
if (stream.atEnd()) {
qWarning("menu file not found in:");
QStringList locations = QStandardPaths::standardLocations(
QStandardPaths::GenericDataLocation);
foreach (const QString &location, locations)
{
qWarning(" '%s'", DBG(location));
}
}
Q_ASSERT(!stream.atEnd()); Q_ASSERT(!stream.atEnd());
if (!stream.atEnd()) parseCommands(stream); if (!stream.atEnd()) parseCommands(stream);
menufile.close(); menufile.close();
......
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