diff options
author | Michele Calgaro <[email protected]> | 2022-02-12 00:17:53 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2022-02-14 01:07:37 +0900 |
commit | f9f7aee79eecdb610d71a8f2703de43e90018e5b (patch) | |
tree | dbb7075651157c6fad1d0aa027b503c95b5aa2e7 /tdeioslave/media/tdecmodule/managermodule.cpp | |
parent | f1df18afb54fd214430a2eb8416f632ffb8c64d1 (diff) | |
download | tdebase-f9f7aee79eecdb610d71a8f2703de43e90018e5b.tar.gz tdebase-f9f7aee79eecdb610d71a8f2703de43e90018e5b.zip |
Removed HAL dependant code.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeioslave/media/tdecmodule/managermodule.cpp')
-rw-r--r-- | tdeioslave/media/tdecmodule/managermodule.cpp | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/tdeioslave/media/tdecmodule/managermodule.cpp b/tdeioslave/media/tdecmodule/managermodule.cpp index 6478ee2a8..813775cbd 100644 --- a/tdeioslave/media/tdecmodule/managermodule.cpp +++ b/tdeioslave/media/tdecmodule/managermodule.cpp @@ -44,13 +44,6 @@ ManagerModule::ManagerModule( TQWidget* parent, const char* name ) addConfig( MediaManagerSettings::self(), view ); -#ifndef COMPILE_HALBACKEND - TQString hal_text = view->kcfg_HalBackendEnabled->text(); - hal_text += " ("+i18n("No support for HAL on this system")+")"; - view->kcfg_HalBackendEnabled->setText( hal_text ); -#endif - view->kcfg_HalBackendEnabled->setEnabled( false ); - #ifndef COMPILE_LINUXCDPOLLING TQString poll_text = view->kcfg_CdPollingEnabled->text(); poll_text += " ("+i18n("No support for CD polling on this system")+")"; @@ -140,13 +133,12 @@ void ManagerModule::save() rememberSettings(); - //Well... reloadBackends is buggy with HAL, it seems to be linked - //to a bug in the unmaintained Qt3 DBUS binding ;-/ - //DCOPRef mediamanager( "kded", "mediamanager" ); - //DCOPReply reply = mediamanager.call( "reloadBackends" ); - - // So we use this hack instead... DCOPRef kded( "kded", "kded" ); + // DCOPReply reply = mediamanager.call( "reloadBackends" ); + // Well... reloadBackends had issues with HAL, it seems it was linked + // to a bug in the unmaintained Qt3 DBUS binding, but it is not quite clear. + // It may be ok now that HAL is no longer supported but needs to be tested. + // So we use this hack instead... kded.call( "unloadModule", "mediamanager" ); kded.call( "loadModule", "mediamanager" ); |