1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-09 14:27:56 +00:00

Another compilation Fix for Mac

This commit is contained in:
Christophe Dumez 2010-06-13 16:30:48 +00:00
parent cc6d371667
commit 2cd940e7c7

View File

@ -46,7 +46,7 @@ bool QMacApplication::event(QEvent * ev) {
QString path = static_cast<QFileOpenEvent *>(ev)->file(); QString path = static_cast<QFileOpenEvent *>(ev)->file();
if(path.isEmpty()) { if(path.isEmpty()) {
// Get the url instead // Get the url instead
path = static_cast<QFileOpenEvent *>(ev)->url(); path = static_cast<QFileOpenEvent *>(ev)->url().toString();
} }
qDebug("Received a mac file open event: %s", qPrintable(path)); qDebug("Received a mac file open event: %s", qPrintable(path));
emit newFileOpenMacEvent(path); emit newFileOpenMacEvent(path);