summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2022-02-06 20:11:48 +0900
committerMichele Calgaro <[email protected]>2022-02-06 20:11:48 +0900
commitda10cdaf055bc8fe0f03702afe2b8c7bc5c5ed4f (patch)
tree7d0ebe452f7394934f737e2185cd554d7ffabe35 /src
parent9f2311f262af668797db3634f174184f17cae63e (diff)
downloadk9copy-da10cdaf055bc8fe0f03702afe2b8c7bc5c5ed4f.tar.gz
k9copy-da10cdaf055bc8fe0f03702afe2b8c7bc5c5ed4f.zip
Removed HAL dependant code.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/k9main.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/k9main.cpp b/src/k9main.cpp
index bf1737f..d8d78f8 100644
--- a/src/k9main.cpp
+++ b/src/k9main.cpp
@@ -31,7 +31,6 @@
#include "k9langselect.h"
#include "k9config.h"
#include "k9updatefactor.h"
-#include "k9haldevice.h"
#include "k9titleencopt.h"
#include <tdeselect.h>
#include <kcombobox.h>
@@ -540,29 +539,12 @@ void k9Main::Open()
closeDVD();
TQString sDevice=getDevice(cbInputDev);
- TQString sVolName="";
- //if no dvd label, try to get it from hal
- for (k9CdDrive *drive=driveList.first();drive;drive=driveList.next()) {
- #ifdef HAVE_HAL
- if (drive->getDevice() != NULL) {
- if (drive->getDevice()->mountPoint()==sDevice) {
- sVolName=drive->getDevice()->getVolumeName();
- sDevice=drive->device;
- break;
- }
- }
-#endif
- }
-
dvd->scandvd(sDevice,m_quickScan);
if (dvd->geterror())
{
KMessageBox::error( this, dvd->geterrMsg(), i18n("Open DVD"));
return;
}
- if (dvd->getDVDTitle()==i18n("unknown") && sVolName!="") {
- dvd->setDVDTitle( sVolName);
- }
listView1->clear();
items.clear();
@@ -1265,12 +1247,6 @@ void k9Main::deviceRemoved(k9CdDrive *_drive) {
}
void k9Main::addDrive(k9CdDrive *drive) {
- #ifdef HAVE_HAL
- if (drive->getDevice()!=NULL) {
- k9HalDevice *dev=drive->getDevice();
- connect(dev,TQT_SIGNAL(volumeChanged( const TQString &,const TQString &)),this,TQT_SLOT(volumeChanged(const TQString&,const TQString&)));
- }
- #endif
if (drive->canReadDVD)
{
TQString c(drive->name + " ("+drive->device+")");