diff --git a/src/app/valentina/dialogs/configpages/preferencespatternpage.cpp b/src/app/valentina/dialogs/configpages/preferencespatternpage.cpp
index f1b522b56..fcfc633cc 100644
--- a/src/app/valentina/dialogs/configpages/preferencespatternpage.cpp
+++ b/src/app/valentina/dialogs/configpages/preferencespatternpage.cpp
@@ -58,7 +58,6 @@ PreferencesPatternPage::PreferencesPatternPage(QWidget *parent)
ui(new Ui::PreferencesPatternPage)
{
ui->setupUi(this);
- ui->userName->setText(qApp->ValentinaSettings()->GetUser());
ui->graphOutputCheck->setChecked(qApp->ValentinaSettings()->GetGraphicalOutput());
ui->undoCount->setValue(qApp->ValentinaSettings()->GetUndoCount());
@@ -81,7 +80,6 @@ PreferencesPatternPage::~PreferencesPatternPage()
void PreferencesPatternPage::Apply()
{
VSettings *settings = qApp->ValentinaSettings();
- settings->SetUser(ui->userName->text());
// Scene antialiasing
settings->SetGraphicalOutput(ui->graphOutputCheck->isChecked());
diff --git a/src/app/valentina/dialogs/configpages/preferencespatternpage.ui b/src/app/valentina/dialogs/configpages/preferencespatternpage.ui
index e633ca4eb..957a4ce9e 100644
--- a/src/app/valentina/dialogs/configpages/preferencespatternpage.ui
+++ b/src/app/valentina/dialogs/configpages/preferencespatternpage.ui
@@ -14,29 +14,6 @@
Pattern
- -
-
-
- User
-
-
-
-
-
-
- User name:
-
-
-
- -
-
-
- true
-
-
-
-
-
-
-
diff --git a/src/app/valentina/dialogs/dialogpatternproperties.ui b/src/app/valentina/dialogs/dialogpatternproperties.ui
index e02ab897a..05fa7479f 100644
--- a/src/app/valentina/dialogs/dialogpatternproperties.ui
+++ b/src/app/valentina/dialogs/dialogpatternproperties.ui
@@ -21,7 +21,7 @@
-
- 3
+ 0
diff --git a/src/libs/vmisc/vcommonsettings.cpp b/src/libs/vmisc/vcommonsettings.cpp
index 9ced61f6e..f8b9f959a 100644
--- a/src/libs/vmisc/vcommonsettings.cpp
+++ b/src/libs/vmisc/vcommonsettings.cpp
@@ -63,7 +63,6 @@ const QString settingConfigurationConfirmItemDeletion = QStringLiteral("confi
const QString settingConfigurationConfirmFormatRewriting = QStringLiteral("configuration/confirm_format_rewriting");
const QString settingConfigurationToolBarStyle = QStringLiteral("configuration/tool_bar_style");
-const QString settingPatternUser = QStringLiteral("pattern/user");
const QString settingPatternUndo = QStringLiteral("pattern/undo");
const QString settingPatternForbidFlipping = QStringLiteral("pattern/forbidFlipping");
const QString settingPatternHideMainPath = QStringLiteral("pattern/hideMainPath");
@@ -479,24 +478,6 @@ void VCommonSettings::SetToolBarStyle(const bool &value)
setValue(settingConfigurationToolBarStyle, value);
}
-//---------------------------------------------------------------------------------------------------------------------
-QString VCommonSettings::GetUser() const
-{
- QString user;
-#ifdef Q_OS_WIN
- user = value(settingPatternUser, QString::fromLocal8Bit(qgetenv("USERNAME").constData())).toString();
-#else
- user = value(settingPatternUser, QString::fromLocal8Bit(qgetenv("USER").constData())).toString();
-#endif
- return user;
-}
-
-//---------------------------------------------------------------------------------------------------------------------
-void VCommonSettings::SetUser(const QString &value)
-{
- setValue(settingPatternUser, value);
-}
-
//---------------------------------------------------------------------------------------------------------------------
int VCommonSettings::GetUndoCount() const
{
diff --git a/src/libs/vmisc/vcommonsettings.h b/src/libs/vmisc/vcommonsettings.h
index de7f37655..6f16ebbb6 100644
--- a/src/libs/vmisc/vcommonsettings.h
+++ b/src/libs/vmisc/vcommonsettings.h
@@ -100,9 +100,6 @@ public:
bool GetToolBarStyle() const;
void SetToolBarStyle(const bool &value);
- QString GetUser() const;
- void SetUser(const QString &value);
-
int GetUndoCount() const;
void SetUndoCount(const int &value);