~3v1n0/unity-2d/secondary-activate-support

« back to all changes in this revision

Viewing changes to libunity-2d-private/Unity2d/launcherdropitem.cpp

  • Committer: Marco Trevisan (Treviño)
  • Date: 2011-07-19 15:35:07 UTC
  • mfrom: (615.1.18 unity-2d)
  • Revision ID: mail@3v1n0.net-20110719153507-vw9w6hfhuezzll77
Merging with upstream...

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
{
43
43
    Q_FOREACH(QUrl url, getEventUrls(event)) {
44
44
        if (url.scheme() == "file" && url.path().endsWith(".desktop")) {
45
 
            emit desktopFileDropped(url.path());
 
45
            desktopFileDropped(url.path());
46
46
        } else if (url.scheme().startsWith("http")) {
47
 
            emit webpageUrlDropped(url);
 
47
            webpageUrlDropped(url);
48
48
        }
49
49
    }
50
50
    event->setAccepted(false);