mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 16:08:23 +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));
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
@ -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)
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user