mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-26 16:25:23 -04:00
Small fixes in Application.
This commit is contained in:
parent
b5249d196d
commit
76eb935024
3 changed files with 6 additions and 12 deletions
|
@ -24,17 +24,13 @@ Application::Application(int& argc, char** argv)
|
|||
{
|
||||
}
|
||||
|
||||
Application::~Application()
|
||||
{
|
||||
}
|
||||
|
||||
bool Application::event(QEvent *event)
|
||||
bool Application::event(QEvent* event)
|
||||
{
|
||||
// Handle Apple QFileOpenEvent from finder (double click on .kdbx file)
|
||||
if (event->type() == QEvent::FileOpen) {
|
||||
Q_EMIT openDatabase(static_cast<QFileOpenEvent*>(event)->file());
|
||||
Q_EMIT openFile(static_cast<QFileOpenEvent*>(event)->file());
|
||||
return true;
|
||||
}
|
||||
|
||||
return (QApplication::event(event));
|
||||
return QApplication::event(event);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue