mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:07:20 +08:00
[AFV] Ref T730, make sure device is "valid"
This commit is contained in:
@@ -62,7 +62,7 @@ namespace BlackMisc
|
||||
bool isOutputDevice() const { return this->getType() == OutputDevice; }
|
||||
|
||||
//! Valid audio device object?
|
||||
bool isValid() const { return !m_deviceName.isEmpty(); }
|
||||
bool isValid() const { return !m_deviceName.isEmpty() && (m_deviceName != Unknown); }
|
||||
|
||||
//! Is this a default device?
|
||||
bool isDefault() const { return m_deviceName == "default"; }
|
||||
|
||||
Reference in New Issue
Block a user