- Timestamp:
 - Jan 21, 2010, 6:36:45 PM (16 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  trunk/src/gui/kernel/qmime_pm.cpp (modified) (5 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/gui/kernel/qmime_pm.cpp
r460 r461 1574 1574 bool QPMMime::canTargetRenderAsOS2File(DRAGITEM *item, QByteArray *fullName /*= 0*/) 1575 1575 { 1576 if ( !item)1576 if (!item) 1577 1577 return false; 1578 1578 … … 1606 1606 ok = false; 1607 1607 int drmLen = strlen("DRM_OS2FILE"); 1608 for (int j = i + drmLen; j < (int)rmf.size(); ++j) {1608 for (int j = i + drmLen; j < rmf.size(); ++j) { 1609 1609 char ch = rmf[j]; 1610 1610 if (ch == ' ') … … 1627 1627 QByteArray srcFullName2(srcFullName.size(), '\0'); 1628 1628 APIRET rc = DosQueryPathInfo(srcFullName, FIL_QUERYFULLNAME, 1629 srcFullName2.data(), srcFullName2.size() );1629 srcFullName2.data(), srcFullName2.size() + 1); 1630 1630 if (rc != 0) 1631 1631 return false; … … 2182 2182 return result; 2183 2183 QString fn = QFile::decodeName(fullName); 2184 urls += QUrl::fromLocalFile(fn) .toString();2184 urls += QUrl::fromLocalFile(fn); 2185 2185 } 2186 2186 … … 2380 2380 } 2381 2381 2382 // Note: both allAreFiles and allAreURLs may be true here (e.g. a file on 2383 // the desktop that represents an URL object). In this case, we will treat 2384 // the list as files rather than as URLs for similarity with other platforms 2385 // (e.g. an Internet shortcut on Windows is interpreted as a local file as 2386 // well). 2387 2382 2388 if (allAreFiles) { 2383 2389 // return an exclusive drop worker  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  