mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-06 16:45:15 -04:00
Set default name for root group when creating new database.
This commit is contained in:
parent
98a2950941
commit
b217475dff
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
|||
#include <QtGui/QMessageBox>
|
||||
|
||||
#include "core/Database.h"
|
||||
#include "core/Group.h"
|
||||
#include "core/Metadata.h"
|
||||
#include "gui/DatabaseWidget.h"
|
||||
#include "gui/FileDialog.h"
|
||||
|
@ -62,6 +63,7 @@ void DatabaseTabWidget::newDatabase()
|
|||
{
|
||||
DatabaseManagerStruct dbStruct;
|
||||
Database* db = new Database();
|
||||
db->rootGroup()->setName(tr("Root"));
|
||||
dbStruct.dbWidget = new DatabaseWidget(db, this);
|
||||
|
||||
insertDatabase(db, dbStruct);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue