Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Fix compilation of pc-mounttray on 10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Moore committed Nov 7, 2013
1 parent b7d9fad commit e020f6a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src-qt4/pc-mounttray/devCheck.cpp
Expand Up @@ -206,8 +206,8 @@ bool DevCheck::devInfo(QString dev, QString* type, QString* label, QString* file
}
}
//make sure that a device label does not contain "(" or ")"
if(dlabel.contains("(")){ dlabel.remove("(").simplified(); }
if(dlabel.contains(")")){ dlabel.remove(")").simplified(); }
if(dlabel.contains("(")){ dlabel = dlabel.remove("(").simplified(); }
if(dlabel.contains(")")){ dlabel = dlabel.remove(")").simplified(); }
dlabel = dlabel.simplified();
//Now perform the final checks to see if it is a good device
bool good = FALSE;
Expand Down
12 changes: 4 additions & 8 deletions src-qt4/pc-mounttray/settingsDialog.cpp
Expand Up @@ -48,9 +48,9 @@ void SettingsDialog::showDialog(){
//qDebug() << "Refresh Time:"<< QString::number(diskRefreshMS)+" ms, "+QString::number(minutes)+" min";
spinDiskRefreshMin->setValue(minutes);
//Apply signals/slots AFTER setting the values
connect(groupDiskWatch, SIGNAL(clicked(bool)),this,SLOT(slotUpdateUI(bool)) );
connect(checkDiskAutoTimer, SIGNAL(clicked(bool)),this,SLOT(slotUpdateUI(bool)) );
connect(spinDiskRefreshMin, SIGNAL(valueChanged(int)),this,SLOT(slotUpdateUI(int)) );
connect(groupDiskWatch, SIGNAL(clicked(bool)),this,SLOT(slotUpdateUI()) );
connect(checkDiskAutoTimer, SIGNAL(clicked(bool)),this,SLOT(slotUpdateUI()) );
connect(spinDiskRefreshMin, SIGNAL(valueChanged(int)),this,SLOT(slotUpdateUI()) );
this->exec();

}
Expand All @@ -70,14 +70,10 @@ void SettingsDialog::slotCloseDialog(){
this->close();
}

void SettingsDialog::slotUpdateUI(bool checked){
void SettingsDialog::slotUpdateUI(){
applyButton->setEnabled(TRUE);
//Could do check for visible/invisible options here as well
}

void SettingsDialog::slotUpdateUI(int value){
applyButton->setEnabled(TRUE);
//Could do check for visible/invisible options here as well
}


3 changes: 1 addition & 2 deletions src-qt4/pc-mounttray/settingsDialog.h
Expand Up @@ -42,8 +42,7 @@ private slots:
void slotApply();
void slotCloseDialog();

void slotUpdateUI(bool checked=FALSE);
void slotUpdateUI(int);
void slotUpdateUI();

};

Expand Down

0 comments on commit e020f6a

Please sign in to comment.