Commit 960bfded authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Rename path

parent 01252180
Pipeline #45101 passed with stage
in 9 minutes and 25 seconds
......@@ -71,7 +71,7 @@ void GroupManagementWidget::slotCustomContextMenu()
void GroupManagementWidget::init()
{
const QString groupPath = LoadGroupMenu::defaultGroupPath();
const QString groupPath = LoadGroupMenu::defaultWritableGroupPath();
if (groupPath.isEmpty()) {
return;
}
......
......@@ -215,7 +215,7 @@ void KDebugSettingsDialog::slotInsertCategories()
void KDebugSettingsDialog::slotSaveAsGroup()
{
const QString groupPath = LoadGroupMenu::defaultGroupPath();
const QString groupPath = LoadGroupMenu::defaultWritableGroupPath();
const QString name = QInputDialog::getText(this, i18n("Group Name"), i18n("Name"));
const QString trimmedName = name.trimmed();
if (!trimmedName.isEmpty()) {
......
......@@ -42,7 +42,7 @@ void LoadGroupMenu::refreshMenu()
init();
}
QString LoadGroupMenu::defaultGroupPath()
QString LoadGroupMenu::defaultWritableGroupPath()
{
return QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + QLatin1String("/groups");
}
......@@ -50,7 +50,7 @@ QString LoadGroupMenu::defaultGroupPath()
void LoadGroupMenu::init()
{
//Load all ?
const QString groupPath = LoadGroupMenu::defaultGroupPath();
const QString groupPath = LoadGroupMenu::defaultWritableGroupPath();
if (groupPath.isEmpty()) {
setEnabled(false);
return;
......
......@@ -32,7 +32,7 @@ public:
void refreshMenu();
static Q_REQUIRED_RESULT QString defaultGroupPath();
static Q_REQUIRED_RESULT QString defaultWritableGroupPath();
Q_SIGNALS:
void loadGroupRequested(const QString &filePath);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment