summaryrefslogtreecommitdiff
path: root/src/model/pulsemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/pulsemodel.cpp')
-rw-r--r--src/model/pulsemodel.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/model/pulsemodel.cpp b/src/model/pulsemodel.cpp
index 31df0ca..03ed42d 100644
--- a/src/model/pulsemodel.cpp
+++ b/src/model/pulsemodel.cpp
@@ -18,7 +18,7 @@ struct PAServerEvent : public TQCustomEvent {
};
struct PAEvent : public TQCustomEvent {
- enum Kind { DeviceAdded, DeviceRemoved, DeviceUpdated };
+ enum Kind { DeviceAdded, DeviceRemoved };
Kind kind;
AudioDevice::Category cat;
uint32_t paIndex;
@@ -90,9 +90,7 @@ static TQString paCleanAppName( const char *raw )
if ( lb != -1 && rb > lb )
s = s.mid( lb + 1, rb - lb - 1 ).stripWhiteSpace();
- // Strip trailing "app" (amarokapp → amarok), then capitalise first letter
- if ( s.endsWith("app") && s.length() > 3 )
- s = s.left( s.length() - 3 );
+ // capitalise first letter
if ( !s.isEmpty() )
s[0] = s[0].upper();
@@ -633,7 +631,6 @@ void PulseModel::customEvent( TQCustomEvent *e )
return;
}
- // DeviceAdded or DeviceUpdated (both come through the same info callbacks).
// For Playback streams, resolve the parent sink's monitor source name so the
// level meter can attach a peak-detect stream to just this sink input.
TQString monitorName = ev->monitorName;