Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions minutor.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ TEMPLATE = app
TARGET = minutor
CONFIG += c++14
QT += widgets network concurrent
greaterThan(QT_MAJOR_VERSION, 5) QT += core5compat
QMAKE_INFO_PLIST = minutor.plist
unix:LIBS += -lz
win32:RC_FILE += winicon.rc
Expand Down
2 changes: 1 addition & 1 deletion overlay/propertietreecreator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ QString EvaluateSubExpression(const QString& subexpr, const QVariant& v) {
int rightbracket = subexpr.indexOf(']');
if (rightbracket > 0) {
bool ok = false;
int index = subexpr.midRef(1, rightbracket-1).toInt(&ok);
int index = subexpr.mid(1, rightbracket-1).toInt(&ok);
if (ok && (QMetaType::Type)v.type() == QMetaType::QVariantList) {
return EvaluateSubExpression(subexpr.mid(rightbracket + 1),
v.toList().at(index));
Expand Down
Loading