Commit ff415a33 authored by Thomas Eschenbacher's avatar Thomas Eschenbacher
Browse files

fixed runtime warning about bad character reference:

Using QCharRef with an index pointing outside the valid range of a QString. The corresponding behavior is deprecated, and will be changed in a future version of Qt.
parent 665a4c32
......@@ -298,7 +298,8 @@ void Kwave::MenuNode::insertNode(const QString &name,
if (!sub) return;
}
if (p[0] == QLatin1Char('#')) sub->specialCommand(p);
if (p.length() && (p[0] == QLatin1Char('#')))
sub->specialCommand(p);
} else {
// somewhere in the tree
......
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