mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
parent
478b5ddb84
commit
476bd93f55
@ -1117,12 +1117,14 @@ RegisterQAppAssociation* MainApplication::associationManager()
|
|||||||
bool MainApplication::event(QEvent* e)
|
bool MainApplication::event(QEvent* e)
|
||||||
{
|
{
|
||||||
switch (e->type()) {
|
switch (e->type()) {
|
||||||
case QEvent::FileOpen: {
|
case QEvent::FileOpen:
|
||||||
QString fileName = static_cast<QFileOpenEvent*>(e)->file();
|
addNewTab(QUrl::fromLocalFile(static_cast<QFileOpenEvent*>(e)->file()));
|
||||||
addNewTab(QUrl::fromLocalFile(fileName));
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
break;
|
case QEvent::ApplicationActivate:
|
||||||
|
if (m_windows.isEmpty())
|
||||||
|
createWindow(Qz::BW_NewWindow);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user