mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-20 06:06:13 +00:00
Changed: #1193 Code cleanup.
This commit is contained in:
parent
7aca89cbdf
commit
bceb33ab10
1 changed files with 2 additions and 2 deletions
|
@ -80,10 +80,10 @@ CSettingsDialog::~CSettingsDialog()
|
||||||
|
|
||||||
void CSettingsDialog::addPath()
|
void CSettingsDialog::addPath()
|
||||||
{
|
{
|
||||||
QListWidgetItem *newItem = new QListWidgetItem;
|
|
||||||
QString newPath = QFileDialog::getExistingDirectory(this);
|
QString newPath = QFileDialog::getExistingDirectory(this);
|
||||||
if (!(newPath == ""))
|
if (!newPath.isEmpty())
|
||||||
{
|
{
|
||||||
|
QListWidgetItem *newItem = new QListWidgetItem;
|
||||||
newItem->setText(newPath);
|
newItem->setText(newPath);
|
||||||
newItem->setFlags(Qt::ItemIsEditable | Qt::ItemIsEnabled | Qt::ItemIsSelectable);
|
newItem->setFlags(Qt::ItemIsEditable | Qt::ItemIsEnabled | Qt::ItemIsSelectable);
|
||||||
ui.pathsListWidget->addItem(newItem);
|
ui.pathsListWidget->addItem(newItem);
|
||||||
|
|
Loading…
Reference in a new issue