mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Fix typo
This commit is contained in:
parent
387fb93b5b
commit
eeaa1e83a9
1 changed files with 4 additions and 4 deletions
|
@ -36,16 +36,16 @@ QMacApplication::QMacApplication(QString appid, int &argc, char** argv) :
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QMacApplication::event(QEvent * event) {
|
bool QMacApplication::event(QEvent * ev) {
|
||||||
switch (event->type()) {
|
switch (ev->type()) {
|
||||||
case QEvent::FileOpen:
|
case QEvent::FileOpen:
|
||||||
{
|
{
|
||||||
QString path = static_cast<QFileOpenEvent *>(event)->file();
|
QString path = static_cast<QFileOpenEvent *>(ev)->file();
|
||||||
emit newFileOpenMacEvent(path);
|
emit newFileOpenMacEvent(path);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return QtSingleApplication::event(event);
|
return QtSingleApplication::event(ev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue