@ -194,10 +194,12 @@ QString Importer::layoutCanBeImported(QString oldAppletsPath, QString newName)
return QString ( ) ;
}
LayoutSettings oldLSettings ( this , oldAppletsPath ) ;
KSharedConfigPtr lConfig = KSharedConfig : : openConfig ( oldAppletsPath ) ;
KConfigGroup m_layoutGroup = KConfigGroup ( lConfig , " LayoutSettings " ) ;
int layoutVersion = m_layoutGroup . readEntry ( " version " , 1 ) ;
//! old file layout appears to not be old as its version is >=2
if ( oldLSettings. version ( ) > = 2 ) {
if ( layoutVersion > = 2 ) {
return QString ( ) ;
}
@ -219,8 +221,8 @@ QString Importer::layoutCanBeImported(QString oldAppletsPath, QString newName)
}
}
Q File newLayoutFile ( layoutDir . absolutePath ( ) + " / " + newName + " .layout.latte " ) ;
Q String newLayoutPath = newLayoutFile . fileName ( ) ;
Q String newLayoutPath = layoutDir . absolutePath ( ) + " / " + newName + " .layout.latte " ;
Q File newLayoutFile ( newLayoutPath ) ;
QStringList filter ;
filter . append ( QString ( newName + " *.layout.latte " ) ) ;