Permalink
Browse files

Fixed files with dots

  • Loading branch information...
1 parent 6883f8c commit 2c4cd522662d0f5198083549b4ac854a12687ef7 @bmcdorman bmcdorman committed Dec 23, 2011
Showing with 8 additions and 1 deletion.
  1. +8 −1 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();

0 comments on commit 2c4cd52

Please sign in to comment.