diff options
author | Ken Moore <moorekou@gmail.com> | 2015-09-09 09:38:42 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-09-09 09:38:42 -0400 |
commit | 139f27a2cef00782486e4ffc9a31c4bfb08c1639 (patch) | |
tree | f79aadf202ac8d0fa017fd47b48f0bf7801f9a66 /lumina-fm/widgets | |
parent | Fix a bug in the ~ replacement routine. (diff) | |
download | lumina-139f27a2cef00782486e4ffc9a31c4bfb08c1639.tar.gz lumina-139f27a2cef00782486e4ffc9a31c4bfb08c1639.tar.bz2 lumina-139f27a2cef00782486e4ffc9a31c4bfb08c1639.zip |
Make sure to run the user-input dir path through the input fix/replacement routine in LuminaUtils.
Diffstat (limited to 'lumina-fm/widgets')
-rw-r--r-- | lumina-fm/widgets/DirWidget.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lumina-fm/widgets/DirWidget.cpp b/lumina-fm/widgets/DirWidget.cpp index f2d7a5a6..ed1f4544 100644 --- a/lumina-fm/widgets/DirWidget.cpp +++ b/lumina-fm/widgets/DirWidget.cpp @@ -744,11 +744,15 @@ void DirWidget::on_actionStopLoad_triggered(){ } void DirWidget::dir_changed(){ - QString dir = line_dir->text(); + QString dir = line_dir->text().simplified(); + //Run the dir through the user-input checks + dir = LUtils::PathToAbsolute(dir); + qDebug() << "Dir:" << dir; //Quick check to ensure the directory exists while(!QFile::exists(dir) && !dir.isEmpty()){ dir = dir.section("/",0,-2); //back up one additional dir } + qDebug() << " - Now Dir:" << dir; stopload = true; //just in case it is still loading emit LoadDirectory(ID, dir); } |