Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed files with dots

  • Loading branch information...
commit 2c4cd522662d0f5198083549b4ac854a12687ef7 1 parent 6883f8c
@bmcdorman bmcdorman authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 cbcui/src/FileManager.cpp
View
9 cbcui/src/FileManager.cpp
@@ -175,7 +175,14 @@ void FileManager::updateGUI()
// qWarning() << validExts;
m_compile = false;
- if(validExts.contains(filename.section(".", 1))){
+ bool shouldCompile = false;
+ foreach(const QString& ext, validExts) {
+ if(filename.endsWith(QString(".") + ext)) {
+ shouldCompile = true;
+ break;
+ }
+ }
+ if(shouldCompile) {
ui_actionButton->setText("Compile");
ui_actionButton->show();
ui_stopButton->hide();
Please sign in to comment.
Something went wrong with that request. Please try again.