mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-29 10:56:48 -05:00
Adding warning messages when config access error.
This commit is contained in:
parent
c4d6fa855c
commit
15a288aa5b
4 changed files with 30 additions and 0 deletions
|
|
@ -62,6 +62,11 @@ SettingsWidget::SettingsWidget(QWidget* parent)
|
|||
addPage(tr("General"), FilePath::instance()->icon("categories", "preferences-other"), m_generalWidget);
|
||||
addPage(tr("Security"), FilePath::instance()->icon("status", "security-high"), m_secWidget);
|
||||
|
||||
if (config()->hasAccessError()) {
|
||||
m_generalUi->messageWidget->showMessage(
|
||||
tr("Access error with config file ") + config()->getFileName(), MessageWidget::Error);
|
||||
}
|
||||
|
||||
if (!autoType()->isAvailable()) {
|
||||
m_generalUi->generalSettingsTabWidget->removeTab(1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@
|
|||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="MessageWidget" name="messageWidget" native="true"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QTabWidget" name="generalSettingsTabWidget">
|
||||
<property name="currentIndex">
|
||||
|
|
@ -368,6 +371,12 @@
|
|||
<extends>QLineEdit</extends>
|
||||
<header>autotype/ShortcutWidget.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>MessageWidget</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>gui/MessageWidget.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue