Changed: #1193 Code cleanup.

hg/feature/sound
dnk-88 14 years ago
parent 3d3f1abb9c
commit 53b25193a2

@ -80,10 +80,10 @@ CSettingsDialog::~CSettingsDialog()
void CSettingsDialog::addPath()
{
QListWidgetItem *newItem = new QListWidgetItem;
QString newPath = QFileDialog::getExistingDirectory(this);
if (!(newPath == ""))
if (!newPath.isEmpty())
{
QListWidgetItem *newItem = new QListWidgetItem;
newItem->setText(newPath);
newItem->setFlags(Qt::ItemIsEditable | Qt::ItemIsEnabled | Qt::ItemIsSelectable);
ui.pathsListWidget->addItem(newItem);

Loading…
Cancel
Save