summaryrefslogtreecommitdiffstats
path: root/src/gui/studio/DeviceEditorDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/studio/DeviceEditorDialog.cpp')
-rw-r--r--src/gui/studio/DeviceEditorDialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/studio/DeviceEditorDialog.cpp b/src/gui/studio/DeviceEditorDialog.cpp
index 11283d6..79f0fbc 100644
--- a/src/gui/studio/DeviceEditorDialog.cpp
+++ b/src/gui/studio/DeviceEditorDialog.cpp
@@ -343,7 +343,7 @@ DeviceEditorDialog::getDeviceIdAt(int row) // -1 for new device w/o an id yet
TQString number = re.cap(1);
int id = -1;
- if (number && number != "")
+ if (!number.isNull() && number != "")
{
id = number.toInt() - 1; // displayed device numbers are 1-based
}