bug in variable initialization

This commit is contained in:
Daniel Tartavel 2025-03-24 14:42:27 +08:00
parent 381054b340
commit 64ef7d9c87
3 changed files with 6 additions and 5 deletions

View File

@ -16,21 +16,21 @@ DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs depr
SOURCES += \ SOURCES += \
downloadfile.cpp \ downloadfile.cpp \
main.cpp \ main.cpp \
mainwindow.cpp \ mainwindow.cpp \
password.cpp \ password.cpp \
tools.cpp tools.cpp
HEADERS += \ HEADERS += \
version.h\ version.h\
downloadfile.h \ downloadfile.h \
mainwindow.h \ mainwindow.h \
password.h \ password.h \
tools.h tools.h
FORMS += \ FORMS += \
about.ui \ about.ui \
configuration.ui \ configuration.ui \
mainwindow.ui mainwindow.ui
TRANSLATIONS += \ TRANSLATIONS += \

View File

@ -1060,6 +1060,7 @@ void MainWindow::on_treeWidget_itemClicked(QTreeWidgetItem *item, bool downloadD
if (this->treeviewClicked == true) if (this->treeviewClicked == true)
{ {
info(DEBUGMACRO, "double click ignored");
return; return;
} }

View File

@ -120,8 +120,8 @@ class MainWindow : public QMainWindow
QSystemTrayIcon * trayIcon; QSystemTrayIcon * trayIcon;
QString icon = "/usr/share/icons/RsyncUI.png"; QString icon = "/usr/share/icons/RsyncUI.png";
bool rescan = false; bool rescan = false;
bool stopDlAsked; bool stopDlAsked = false;
bool treeviewClicked; bool treeviewClicked = false;
bool initialization = true; bool initialization = true;
bool exiting = false; bool exiting = false;