Skip to content

Commit

Permalink
revert.
Browse files Browse the repository at this point in the history
  • Loading branch information
treefrogframework committed Feb 22, 2022
1 parent 406fb24 commit 354f80f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ int Compiler::compileAndExecute(const QString &cc, const QStringList &options, c
exe.start(aoutName(), cppsArgs);
exe.waitForStarted();

#ifndef Q_OS_WIN
auto readfunc = [&]() {
// read and write to the process
std::string s;
Expand All @@ -187,6 +186,7 @@ int Compiler::compileAndExecute(const QString &cc, const QStringList &options, c
}
};

#ifndef Q_OS_WIN
QSocketNotifier notifier(fileno(stdin), QSocketNotifier::Read);
QObject::connect(&notifier, &QSocketNotifier::activated, readfunc);
#endif
Expand Down

0 comments on commit 354f80f

Please sign in to comment.