[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.3/kdelibs/nepomuk/core
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2009-10-17 17:24:45
Message-ID: 1255800285.404772.786.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1036731 by trueg:
Backport: default to nfo:FileDataObject for file urls
M +8 -2 resourcedata.cpp
--- branches/KDE/4.3/kdelibs/nepomuk/core/resourcedata.cpp #1036730:1036731
@@ -76,8 +76,14 @@
m_groundingOccurence(0),
m_rm(rm)
{
- if( m_mainType.isEmpty() )
- m_mainType = Soprano::Vocabulary::RDFS::Resource();
+ if( m_mainType.isEmpty() ) {
+ if( !m_uri.isEmpty() &&
+ m_uri.scheme() == QLatin1String("file") &&
+ QFile::exists( m_url.toLocalFile() ) )
+ m_mainType = Nepomuk::Vocabulary::NFO::FileDataObject();
+ else
+ m_mainType = Soprano::Vocabulary::RDFS::Resource();
+ }
m_types << m_mainType;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic