From ff020f03a29dd26bda0b891c562226fa7a61eb19 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Sun, 24 May 2026 14:45:24 -0400 Subject: show error page in OSS mixer window when backend fails to open If /dev/mixer can't be opened (missing device, bad permissions, etc.) the window now shows the error reason instead of silently not appearing. The tray is also skipped in the error case. Co-Authored-By: Claude Sonnet 4.6 --- src/model/ossmodel.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/model/ossmodel.h') diff --git a/src/model/ossmodel.h b/src/model/ossmodel.h index 8c3db8b..0ab6b15 100644 --- a/src/model/ossmodel.h +++ b/src/model/ossmodel.h @@ -25,6 +25,8 @@ public: bool open(); void close(); + TQString lastError() const { return m_lastError; } + TQValueList cards() const { return m_cards; } TQPtrList devices() const { return m_devices; } TQPtrList devicesForCard( int cardIdx ) const; @@ -47,4 +49,5 @@ private: TQPtrList m_devices; TQValueList m_fds; // one open fd per card, owned here TQTimer *m_timer; + TQString m_lastError; }; -- cgit v1.2.3