Unverified Commit a755fb9f authored by Rolf Eike Beer's avatar Rolf Eike Beer
Browse files

avoid possible QStringList detach

parent bb16aae4
......@@ -431,8 +431,8 @@ bool FloppyData::setInitialDevice(const QString& dev)
if (!reply.isValid()) {
qCritical() << "Invalid reply from mediamanager";
} else {
QStringList properties = reply;
newDevice = properties[5];
const QStringList properties = reply;
newDevice = properties.at(5);
}
}
......
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