From cb61f40ee87d6b22df0a31d4c34ebe7daf67dde1 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Sat, 18 Mar 2023 12:48:39 +0100 Subject: [PATCH] debug : scandir do not scan sub-directory --- RsyncUI.pro | 70 ----------- RsyncUI.pro.user | 320 ----------------------------------------------- mainwindow.cpp | 5 +- 3 files changed, 3 insertions(+), 392 deletions(-) delete mode 100644 RsyncUI.pro delete mode 100644 RsyncUI.pro.user diff --git a/RsyncUI.pro b/RsyncUI.pro deleted file mode 100644 index 457a665..0000000 --- a/RsyncUI.pro +++ /dev/null @@ -1,70 +0,0 @@ -QT += core gui concurrent -QT += KItemViews -QT += KCompletion -QT += widgets -QT += KConfigCore KConfigGui -QT += KCoreAddons -QT += KDBusAddons - -LIBS += -lqt5keychain - -greaterThan(QT_MAJOR_VERSION, 4): QT += widgets - -CONFIG += c++11 - -DEFINES += QTKEYCHAIN_NO_EXPORT - -# You can make your code fail to compile if it uses deprecated APIs. -# In order to do so, uncomment the following line. -#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 - -SOURCES += \ - downloadfile.cpp \ - main.cpp \ - mainwindow.cpp \ - password.cpp \ - tools.cpp - -HEADERS += \ - downloadfile.h \ - mainwindow.h \ - password.h \ - tools.h - -FORMS += \ - about.ui \ - configuration.ui \ - mainwindow.ui - -TRANSLATIONS += \ - RsyncUI_fr_FR.ts - -INCLUDEPATH += \ - /usr/include/KF5 \ - /usr/include/qt5keychain/ - -# Default rules for deployment. -qnx: target.path = /tmp/$${TARGET}/bin -else: unix:!android: target.path = /usr/bin/ -!isEmpty(target.path): INSTALLS += target - -INSTALLS += lang -INSTALLS += documentation -INSTALLS += desktopfile -INSTALLS += icon - -RESOURCES += - -DISTFILES += \ - RsyncUI.desktop - -lang.path = /languages/ -lang.path = /usr/share/locale/ -lang.files = languages/* -documentation.path = /usr/share/doc/RsyncUI -documentation.files = README* -desktopfile.path = /usr/share/applications -desktopfile.files = RsyncUI.desktop -icon.path = /usr/share/icons/ -icon.files = RsyncUI.png --lqt5keychain diff --git a/RsyncUI.pro.user b/RsyncUI.pro.user deleted file mode 100644 index 1fdd734..0000000 --- a/RsyncUI.pro.user +++ /dev/null @@ -1,320 +0,0 @@ - - - - - - EnvironmentId - {a3117c94-e673-4dca-aa4c-050bbea034fe} - - - ProjectExplorer.Project.ActiveTarget - 0 - - - ProjectExplorer.Project.EditorSettings - - true - false - true - - Cpp - - CppGlobal - - - - QmlJS - - QmlJSGlobal - - - 2 - UTF-8 - false - 4 - false - 80 - true - true - 1 - true - false - 0 - true - true - 0 - 8 - true - 1 - true - true - true - *.md, *.MD, Makefile - false - true - - - - ProjectExplorer.Project.PluginSettings - - - true - true - true - true - true - - - 0 - true - - true - Builtin.Questionable - - true - true - Builtin.DefaultTidyAndClazy - 2 - - - - true - - - - - ProjectExplorer.Project.Target.0 - - Desktop - Desktop - Desktop - {893f9ca6-0efa-4c08-a4a6-5a818f60a8a0} - 0 - 0 - 0 - - 0 - /home/daniel/develope/build-RsyncUI-Desktop-Debug - /home/daniel/develope/build-RsyncUI-Desktop-Debug - - - true - QtProjectManager.QMakeBuildStep - - false - - - - true - Qt4ProjectManager.MakeStep - - 2 - Build - Build - ProjectExplorer.BuildSteps.Build - - - - true - Qt4ProjectManager.MakeStep - clean - - 1 - Clean - Clean - ProjectExplorer.BuildSteps.Clean - - 2 - false - - - Debug - Qt4ProjectManager.Qt4BuildConfiguration - 2 - 0 - - - /home/daniel/develope/build-RsyncUI-Desktop-Release - /home/daniel/develope/build-RsyncUI-Desktop-Release - - - true - QtProjectManager.QMakeBuildStep - - false - - - - true - Qt4ProjectManager.MakeStep - - 2 - Build - Build - ProjectExplorer.BuildSteps.Build - - - - true - Qt4ProjectManager.MakeStep - clean - - 1 - Clean - Clean - ProjectExplorer.BuildSteps.Clean - - 2 - false - - - Release - Qt4ProjectManager.Qt4BuildConfiguration - 0 - 0 - 0 - - - 0 - /home/daniel/develope/build-RsyncUI-Desktop-Profile - /home/daniel/develope/build-RsyncUI-Desktop-Profile - - - true - QtProjectManager.QMakeBuildStep - - false - - - - true - Qt4ProjectManager.MakeStep - - 2 - Build - Build - ProjectExplorer.BuildSteps.Build - - - - true - Qt4ProjectManager.MakeStep - clean - - 1 - Clean - Clean - ProjectExplorer.BuildSteps.Clean - - 2 - false - - - Profile - Qt4ProjectManager.Qt4BuildConfiguration - 0 - 0 - 0 - 0 - - 3 - - - 0 - Deploy - Deploy - ProjectExplorer.BuildSteps.Deploy - - 1 - - false - ProjectExplorer.DefaultDeployConfiguration - - 1 - - dwarf - - cpu-cycles - - - 250 - - -e - cpu-cycles - --call-graph - dwarf,4096 - -F - 250 - - -F - true - 4096 - false - false - 1000 - - true - - false - false - false - false - true - 0.01 - 10 - true - kcachegrind - 1 - 25 - - 1 - true - false - true - valgrind - - 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - - - 2 - - RsyncUI2 - Qt4ProjectManager.Qt4RunConfiguration:/home/daniel/develop/RsyncUI/RsyncUI.pro - /home/daniel/develop/RsyncUI/RsyncUI.pro - false - true - true - false - true - /home/daniel/develope/build-RsyncUI-Desktop-Debug - - 1 - - - - ProjectExplorer.Project.TargetCount - 1 - - - ProjectExplorer.Project.Updater.FileVersion - 22 - - - Version - 22 - - diff --git a/mainwindow.cpp b/mainwindow.cpp index 64a8008..e6a81da 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -512,6 +512,7 @@ bool MainWindow::scanDir(QString server, int portN, QTreeWidgetItem *parent, QSt myProcess->start(cmd, param); + this->rescan = true; // waiting for response of the server with a timeout of 10 seconds do @@ -532,7 +533,6 @@ bool MainWindow::scanDir(QString server, int portN, QTreeWidgetItem *parent, QSt { myProcess->readAllStandardOutput(); getUserPassword(&this->connexion); - this->rescan = true; return 0; } @@ -841,7 +841,7 @@ bool MainWindow::getUserPassword(Connexion * object) //Slot activated when a file is clicked in the treeview void MainWindow::on_treeWidget_itemClicked(QTreeWidgetItem *item, bool downloadDir) { - QFileDialog dialog; + //#QFileDialog dialog; QTreeWidgetItem * itemR; QString path; QString str; @@ -849,6 +849,7 @@ void MainWindow::on_treeWidget_itemClicked(QTreeWidgetItem *item, bool downloadD int sizeFromRsync; itemR = item; + this->rescan = true; // assembling path from treewidget path = item->text(0);