summaryrefslogtreecommitdiffstats
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r--src/MainWindow.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index 48f65d4..c945da4 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -522,9 +522,8 @@ void MainWindow::openSourceFileDialog(const TQString &fileName)
return;
}
TQString openedSourceFileContent = "";
- TQString fileExtensions = "*.h *.c *.cpp *.*"; // Remove this line when the indenter is available
-///-- TQString fileExtensions = tr("Supported by indenter") + " (" +
-///-- m_indentHandler->getPossibleIndenterFileExtensions() + ");;" + tr("All files") + " (*.*)";
+ TQString fileExtensions = tr("Supported by indenter") + " (" +
+ m_indentHandler->getPossibleIndenterFileExtensions() + ");;" + tr("All files") + " (*.*)";
TQString fileToOpen = fileName;
if (fileToOpen.isEmpty())
@@ -565,9 +564,8 @@ void MainWindow::openSourceFileDialog(const TQString &fileName)
*/
bool MainWindow::saveasSourceFileDialog(TQAction *chosenEncodingAction)
{
- TQString fileExtensions = "*.h *.c *.cpp *.*"; // Remove this line when the indenter is available
-//--- TQString fileExtensions = tr("Supported by indenter") + " (" +
-//--- m_indentHandler->getPossibleIndenterFileExtensions() + ");;" + tr("All files") + " (*.*)";
+ TQString fileExtensions = tr("Supported by indenter") + " (" +
+ m_indentHandler->getPossibleIndenterFileExtensions() + ");;" + tr("All files") + " (*.*)";
TQString fileName = TQFileDialog::getSaveFileName(m_currentSourceFile, fileExtensions, this, nullptr,
tr("Save source code file"));