summaryrefslogtreecommitdiffstats
path: root/src/replaygain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/replaygain.cpp')
-rw-r--r--src/replaygain.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/replaygain.cpp b/src/replaygain.cpp
index d93d57e..a72bce0 100644
--- a/src/replaygain.cpp
+++ b/src/replaygain.cpp
@@ -33,18 +33,18 @@ bool ReplayGain::apply( TQStringList files, const TQString& format, TDEProcess*
}
param = TQString();
- if( plugin->replaygain.param ) param.append( " " + plugin->replaygain.param );
+ if( !plugin->replaygain.param.isEmpty() ) param.append( " " + plugin->replaygain.param );
if( mode & remove ) {
- if( plugin->replaygain.remove ) param.append( " " + plugin->replaygain.remove );
+ if( !plugin->replaygain.remove.isEmpty() ) param.append( " " + plugin->replaygain.remove );
}
else {
- if( (mode & calc_track) && plugin->replaygain.track ) param.append( " " + plugin->replaygain.track );
- if( (mode & calc_album) && plugin->replaygain.album ) param.append( " " + plugin->replaygain.album );
+ if( (mode & calc_track) && !plugin->replaygain.track.isEmpty() ) param.append( " " + plugin->replaygain.track );
+ if( (mode & calc_album) && !plugin->replaygain.album.isEmpty() ) param.append( " " + plugin->replaygain.album );
if( mode & force ) {
- if( plugin->replaygain.force ) param.append( " " + plugin->replaygain.force );
+ if( !plugin->replaygain.force.isEmpty() ) param.append( " " + plugin->replaygain.force );
}
else {
- if( plugin->replaygain.skip ) param.append( " " + plugin->replaygain.skip );
+ if( !plugin->replaygain.skip.isEmpty() ) param.append( " " + plugin->replaygain.skip );
}
}
@@ -94,3 +94,5 @@ bool ReplayGain::apply( TQStringList files, const TQString& format, TDEProcess*
}
//TQValueList<float> ReplayGain::getReplayGain( TQString file ) {} // obsolete
+
+#include "replaygain.moc"