Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dail8859 committed Jul 16, 2024
1 parent d82aef2 commit 07586cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NotepadNext/docks/FolderAsWorkspaceDock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ FolderAsWorkspaceDock::FolderAsWorkspaceDock(QWidget *parent) :

FolderAsWorkspaceDock::~FolderAsWorkspaceDock()
{
ApplicationSettings settings;
settings.set(rootPathSetting, rootPath());

delete ui;
}

void FolderAsWorkspaceDock::setRootPath(const QString dir)
{
ApplicationSettings settings;
settings.set(rootPathSetting, dir);

model->setRootPath(dir);
ui->treeView->setRootIndex(model->index(dir));
}
Expand Down

0 comments on commit 07586cd

Please sign in to comment.