Fix typos

This commit is contained in:
vit9696 2019-01-07 23:01:04 +03:00
parent d16c438069
commit 40b77a713f
4 changed files with 5 additions and 5 deletions

View File

@ -1017,9 +1017,9 @@ void UEFITool::exportDiscoveredGuids()
{ {
GuidDatabase db = guidDatabaseFromTreeRecursive(model, model->index(0, 0)); GuidDatabase db = guidDatabaseFromTreeRecursive(model, model->index(0, 0));
if (!db.empty()) { if (!db.empty()) {
QString path = QFileDialog::getSaveFileName(this, tr("Save parsed GUIDs to datavase"), currentPath + ".guids.csv", tr("Comma-separated values files (*.csv);;All files (*)")); QString path = QFileDialog::getSaveFileName(this, tr("Save parsed GUIDs to database"), currentPath + ".guids.csv", tr("Comma-separated values files (*.csv);;All files (*)"));
if (!path.isEmpty()) if (!path.isEmpty())
guidDatabseExportToFile(path, db); guidDatabaseExportToFile(path, db);
} }
} }

View File

@ -913,7 +913,7 @@
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text"> <property name="text">
<string>Export discovered GUIDs</string> <string>Export discovered GUIDs...</string>
</property> </property>
</action> </action>
</widget> </widget>

View File

@ -126,7 +126,7 @@ GuidDatabase guidDatabaseFromTreeRecursive(TreeModel * model, const UModelIndex
return db; return db;
} }
USTATUS guidDatabseExportToFile(const UString & outPath, GuidDatabase & db) USTATUS guidDatabaseExportToFile(const UString & outPath, GuidDatabase & db)
{ {
std::ofstream outputFile(outPath.toLocal8Bit(), std::ios::out | std::ios::trunc); std::ofstream outputFile(outPath.toLocal8Bit(), std::ios::out | std::ios::trunc);
if (!outputFile) if (!outputFile)

View File

@ -35,6 +35,6 @@ typedef std::map<EFI_GUID, UString, OperatorLessForGuids> GuidDatabase;
UString guidDatabaseLookup(const EFI_GUID & guid); UString guidDatabaseLookup(const EFI_GUID & guid);
void initGuidDatabase(const UString & path = "", UINT32* numEntries = NULL); void initGuidDatabase(const UString & path = "", UINT32* numEntries = NULL);
GuidDatabase guidDatabaseFromTreeRecursive(TreeModel * model, const UModelIndex index); GuidDatabase guidDatabaseFromTreeRecursive(TreeModel * model, const UModelIndex index);
USTATUS guidDatabseExportToFile(const UString & outPath, GuidDatabase & db); USTATUS guidDatabaseExportToFile(const UString & outPath, GuidDatabase & db);
#endif // GUID_DATABASE_H #endif // GUID_DATABASE_H