summaryrefslogtreecommitdiffstats
path: root/src/gui/general/ClefIndex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/general/ClefIndex.cpp')
-rw-r--r--src/gui/general/ClefIndex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/general/ClefIndex.cpp b/src/gui/general/ClefIndex.cpp
index 376b6cb..b02f01a 100644
--- a/src/gui/general/ClefIndex.cpp
+++ b/src/gui/general/ClefIndex.cpp
@@ -55,7 +55,7 @@ const Rosegarden::Clef clefIndexToClef(int index)
const int clefNameToClefIndex(TQString s)
{
int m_elClef = 0;
- if (s) {
+ if (!s.isNull()) {
if (s == "treble")
m_elClef = TrebleClef;
else if (s == "bass")
@@ -97,4 +97,4 @@ const int clefNameToClefIndex(TQString s)
return m_elClef;
}
-} \ No newline at end of file
+}