1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-28 18:50:40 +03:00

fix creation of Alternative Layout

This commit is contained in:
Michail Vourlakos 2017-07-03 21:33:27 +03:00
parent 21a51ba4b3
commit fc0e0f2d50
2 changed files with 7 additions and 1 deletions

View File

@ -225,7 +225,7 @@ QString LayoutManager::newLayout(QString layoutName, QString preset)
QFile(m_corona->kPackage().filePath("preset1")).copy(newLayoutPath);
}
return layoutName;
return newLayoutPath;
}
void LayoutManager::showWidgetsExplorer()

View File

@ -28,6 +28,8 @@ namespace Latte {
LayoutSettings::LayoutSettings(QObject *parent, QString layoutFile, QString layoutName)
: QObject(parent)
{
qDebug() << "Layout file to create object: " << layoutFile;
if (QFile(layoutFile).exists()) {
if (layoutName.isEmpty()) {
int lastSlash = layoutFile.lastIndexOf("/");
@ -87,6 +89,8 @@ void LayoutSettings::setName(QString name)
return;
}
qDebug() << "Layout name:" << name;
m_layoutName = name;
emit nameChanged();
@ -104,6 +108,8 @@ void LayoutSettings::setFile(QString file)
return;
}
qDebug() << "Layout file:" << file;
m_layoutFile = file;
emit fileChanged();
}