mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-25 09:28:22 +08:00
Fix typos
This commit is contained in:
parent
d16c438069
commit
40b77a713f
@ -1017,9 +1017,9 @@ void UEFITool::exportDiscoveredGuids()
|
||||
{
|
||||
GuidDatabase db = guidDatabaseFromTreeRecursive(model, model->index(0, 0));
|
||||
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())
|
||||
guidDatabseExportToFile(path, db);
|
||||
guidDatabaseExportToFile(path, db);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -913,7 +913,7 @@
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Export discovered GUIDs</string>
|
||||
<string>Export discovered GUIDs...</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
|
@ -126,7 +126,7 @@ GuidDatabase guidDatabaseFromTreeRecursive(TreeModel * model, const UModelIndex
|
||||
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);
|
||||
if (!outputFile)
|
||||
|
@ -35,6 +35,6 @@ typedef std::map<EFI_GUID, UString, OperatorLessForGuids> GuidDatabase;
|
||||
UString guidDatabaseLookup(const EFI_GUID & guid);
|
||||
void initGuidDatabase(const UString & path = "", UINT32* numEntries = NULL);
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user