Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to configure timeout for remote process #11271

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

t-h-e
Copy link
Contributor

@t-h-e t-h-e commented Sep 17, 2024

Addresses issue #11234

Does NOT break existing configurations, as default values are used.

Screenshots

image

Testing strategy

Type of change

  • ✅ New feature (change that adds functionality)

src/gui/remote/RemoteHandler.cpp Outdated Show resolved Hide resolved
src/gui/remote/RemoteHandler.cpp Outdated Show resolved Hide resolved
@@ -46,8 +46,10 @@ DatabaseSettingsWidgetRemote::DatabaseSettingsWidgetRemote(QWidget* parent)
connect(m_ui->nameLineEdit, &QLineEdit::textChanged, setModified);
connect(m_ui->downloadCommand, &QLineEdit::textChanged, setModified);
connect(m_ui->inputForDownload, &QPlainTextEdit::textChanged, setModified);
connect(m_ui->downloadTimeout, QOverload<int>::of(&QSpinBox::valueChanged), setModified);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you don't use the value from this signal you could just use textChanged to avoid the awkward QOverload

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why but the Ubuntu build does not agree

/opt/buildagent/work/c401303cba1b4098/src/gui/remote/DatabaseSettingsWidgetRemote.cpp: In constructor ‘DatabaseSettingsWidgetRemote::DatabaseSettingsWidgetRemote(QWidget*)’:
/opt/buildagent/work/c401303cba1b4098/src/gui/remote/DatabaseSettingsWidgetRemote.cpp:49:50: error: ‘textChanged’ is not a member of ‘QSpinBox’
   49 |     connect(m_ui->downloadTimeoutSec, &QSpinBox::textChanged, setModified);
      |                                                  ^~~~~~~~~~~
/opt/buildagent/work/c401303cba1b4098/src/gui/remote/DatabaseSettingsWidgetRemote.cpp:52:48: error: ‘textChanged’ is not a member of ‘QSpinBox’
   52 |     connect(m_ui->uploadTimeoutSec, &QSpinBox::textChanged, setModified);
      |                                                ^~~~~~~~~~~
make[2]: *** [src/CMakeFiles/keepassxc_gui.dir/build.make:1254: src/CMakeFiles/keepassxc_gui.dir/gui/remote/DatabaseSettingsWidgetRemote.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:677: src/CMakeFiles/keepassxc_gui.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Process exited with code 2

- move calculations to GUI layer
- add unit to downloadTimeout and uploadTimeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants