+ split file extension from descriptive text of file format to avoid that invalid translation breaks file dialog
+ add method to make image view unclosable for user + fix possible crash in MeshAlgorithm::GetMeshBorder + fix possible crash in MeshAlgorithm::ConnectLines
This commit is contained in:
@@ -295,7 +295,7 @@ void StdCmdFreezeViews::onSaveViews()
|
||||
{
|
||||
// Save the views to an XML file
|
||||
QString fn = FileDialog::getSaveFileName(getMainWindow(), QObject::tr("Save frozen views"),
|
||||
QString(), QObject::tr("Frozen views (*.cam)"));
|
||||
QString(), QString::fromLatin1("%1 (*.cam)").arg(QObject::tr("Frozen views")));
|
||||
if (fn.isEmpty())
|
||||
return;
|
||||
QFile file(fn);
|
||||
@@ -345,7 +345,7 @@ void StdCmdFreezeViews::onRestoreViews()
|
||||
|
||||
// Restore the views from an XML file
|
||||
QString fn = FileDialog::getOpenFileName(getMainWindow(), QObject::tr("Restore frozen views"),
|
||||
QString(), QObject::tr("Frozen views (*.cam)"));
|
||||
QString(), QString::fromLatin1("%1 (*.cam)").arg(QObject::tr("Frozen views")));
|
||||
if (fn.isEmpty())
|
||||
return;
|
||||
QFile file(fn);
|
||||
|
||||
Reference in New Issue
Block a user