mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-09 06:17:58 +00:00
Fix typo
This commit is contained in:
parent
387fb93b5b
commit
eeaa1e83a9
@ -36,16 +36,16 @@ QMacApplication::QMacApplication(QString appid, int &argc, char** argv) :
|
||||
{
|
||||
}
|
||||
|
||||
bool QMacApplication::event(QEvent * event) {
|
||||
switch (event->type()) {
|
||||
bool QMacApplication::event(QEvent * ev) {
|
||||
switch (ev->type()) {
|
||||
case QEvent::FileOpen:
|
||||
{
|
||||
QString path = static_cast<QFileOpenEvent *>(event)->file();
|
||||
QString path = static_cast<QFileOpenEvent *>(ev)->file();
|
||||
emit newFileOpenMacEvent(path);
|
||||
return true;
|
||||
}
|
||||
default:
|
||||
return QtSingleApplication::event(event);
|
||||
return QtSingleApplication::event(ev);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user