mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-13 16:30:29 -05:00
Fix clipboard timeout.
This commit is contained in:
parent
6cd65ae9a7
commit
20c95737cb
@ -55,7 +55,7 @@ void Clipboard::setText(const QString& text)
|
||||
if (config()->get("security/clearclipboard").toBool()) {
|
||||
int timeout = config()->get("security/clearclipboardtimeout").toInt();
|
||||
if (timeout > 0) {
|
||||
m_timer->start(timeout);
|
||||
m_timer->start(timeout * 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -292,7 +292,6 @@ void DatabaseWidget::copyUsername()
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: set clearTimeout
|
||||
clipboard()->setText(currentEntry->username());
|
||||
}
|
||||
|
||||
@ -304,7 +303,6 @@ void DatabaseWidget::copyPassword()
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: set clearTimeout
|
||||
clipboard()->setText(currentEntry->password());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user