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

avoid string compare if first one matched

parent a755fb9f
......@@ -439,7 +439,7 @@ bool FloppyData::setInitialDevice(const QString& dev)
int drive = -1;
if ( newDevice.startsWith(QLatin1String( "/dev/fd0" )) )
drive = 0;
if ( newDevice.startsWith(QLatin1String( "/dev/fd1" )))
else if ( newDevice.startsWith(QLatin1String( "/dev/fd1" )))
drive = 1;
// ### TODO user given devices
......
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