summaryrefslogtreecommitdiffstats
path: root/src/gui/studio/DeviceEditorDialog.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-11-26 17:42:48 -0600
committerTimothy Pearson <[email protected]>2011-11-26 17:42:48 -0600
commit4b3c5dd929ea78ca3b6f656a63d70b10d2f43885 (patch)
tree995c0d3e35794c1bb1029d6b7eacdd80827807bd /src/gui/studio/DeviceEditorDialog.cpp
parent1461610fb35bb0fcee490f274ea84b8ebfeb1566 (diff)
downloadrosegarden-4b3c5dd929ea78ca3b6f656a63d70b10d2f43885.tar.gz
rosegarden-4b3c5dd929ea78ca3b6f656a63d70b10d2f43885.zip
Fix FTBFS
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
}