aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/widgets
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-10-25 09:05:19 -0400
committerKen Moore <ken@ixsystems.com>2016-10-25 09:05:19 -0400
commit64572549b46acde9ef30565303f59d629cf0eb60 (patch)
tree90238b9abc6fd2af4c87fe0327edce8a97d8e058 /src-qt5/desktop-utils/lumina-fm/widgets
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-64572549b46acde9ef30565303f59d629cf0eb60.tar.gz
lumina-64572549b46acde9ef30565303f59d629cf0eb60.tar.bz2
lumina-64572549b46acde9ef30565303f59d629cf0eb60.zip
Fix the creation of new files/directories within the right-column of a split view.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/widgets')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
index 49799f28..161225e4 100644
--- a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
@@ -100,7 +100,7 @@ QString DirWidget::id(){
}
QString DirWidget::currentDir(){
- return currentBrowser()->currentDirectory();
+ return currentBrowser()->currentDirectory();
}
void DirWidget::setShowDetails(bool show){
@@ -527,6 +527,7 @@ void DirWidget::dirStatusChanged(QString stat){
}
void DirWidget::setCurrentBrowser(QString id){
+ //qDebug() << "Set Current Browser:" << id;
if(id==cBID){ return; } //no change
cBID = id;
currentDirectoryChanged(true); //update all the averarching widget elements (widget only)
@@ -547,7 +548,7 @@ void DirWidget::createNewFile(){
&ok, 0, Qt::ImhFormattedNumbersOnly | Qt::ImhUppercaseOnly | Qt::ImhLowercaseOnly);
if(!ok || newdocument.isEmpty()){ return; }
//Create the empty file
- QString full = BW->currentDirectory();
+ QString full = currentBrowser()->currentDirectory();
if(!full.endsWith("/")){ full.append("/"); }
//verify the new file does not already exist
if(QFile::exists(full+newdocument)){
@@ -572,7 +573,7 @@ void DirWidget::createNewDir(){
&ok, 0, Qt::ImhFormattedNumbersOnly | Qt::ImhUppercaseOnly | Qt::ImhLowercaseOnly);
if(!ok || newdir.isEmpty()){ return; }
//Now create the new dir
- QString full = BW->currentDirectory();
+ QString full = currentBrowser()->currentDirectory();
if(!full.endsWith("/")){ full.append("/"); }
QDir dir(full); //open the current dir
full.append(newdir); //append the new name to the current dir
@@ -596,7 +597,7 @@ void DirWidget::createNewXDGEntry(){
if(!ok || newdocument.isEmpty()){ return; }
if(!newdocument.endsWith(".desktop")){ newdocument.append(".desktop"); }
//Create the empty file
- QString full = BW->currentDirectory();
+ QString full = currentBrowser()->currentDirectory();
if(!full.endsWith("/")){ full.append("/"); }
//Verify the file does not already exist
if(QFile::exists(full+newdocument)){
bgstack15