Fix clipboard timeout.

This commit is contained in:
Florian Geyer 2012-05-27 20:58:44 +02:00
parent 6cd65ae9a7
commit 20c95737cb
2 changed files with 1 additions and 3 deletions

View File

@ -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);
}
}
}

View File

@ -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());
}