Changed extension for mapmap

This commit is contained in:
Tats
2014-04-26 12:37:51 +01:00
parent 430b0f223a
commit d276c6a126
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -187,7 +187,7 @@ void MainWindow::open()
if (okToContinue())
{
QString fileName = QFileDialog::getOpenFileName(this,
tr("Open project"), ".", tr("MapMap files (*.lmp)"));
tr("Open project"), ".", tr("MapMap files (*." MAPMAP_EXTENSION ")"));
if (!fileName.isEmpty())
loadFile(fileName);
}
@@ -210,7 +210,7 @@ bool MainWindow::saveAs()
{
// Popul file dialog to choose filename.
QString fileName = QFileDialog::getSaveFileName(this, tr("Save project"),
".", tr("MapMap files (*.lmp)"));
".", tr("MapMap files (*." MAPMAP_EXTENSION ")"));
if (fileName.isEmpty())
return false;
+1
View File
@@ -41,6 +41,7 @@
#include "qtgroupboxpropertybrowser.h"
#define MAPMAP_VERSION "0.0.9"
#define MAPMAP_EXTENSION "mpm"
/**
* This is the main window of MapMap. It acts as both a view and a controller interface.