Verbose codepage fixed.

This commit is contained in:
cora32 2015-04-02 22:07:25 +03:00
parent 886fa0aa02
commit a17ba5a4b2
10 changed files with 1281 additions and 1016 deletions

View File

@ -36,7 +36,6 @@ void checkWeb(const char *fileName, std::string *oldLM) {
if(lm.compare(*oldLM) != 0) { if(lm.compare(*oldLM) != 0) {
*oldLM = lm; *oldLM = lm;
std::string res(buffer.substr(buffer.find("\r\n\r\n") + 4).c_str()); std::string res(buffer.substr(buffer.find("\r\n\r\n") + 4).c_str());
//std::replace(res.begin(), res.end(), '\r', '\n');
res.erase(std::remove(res.begin(), res.end(), '\r'), res.end()); res.erase(std::remove(res.begin(), res.end(), '\r'), res.end());
std::ofstream out(fileName); std::ofstream out(fileName);
out << std::string(res); out << std::string(res);

View File

@ -22,10 +22,13 @@ void Threader::fireThread(std::string ip, void *func(void)) {
} }
void Threader::cleanUp() { void Threader::cleanUp() {
ready = true;
cv.notify_one();
std::unique_lock<std::mutex> lk(m); std::unique_lock<std::mutex> lk(m);
lk.unlock(); lk.unlock();
lk.release(); lk.release();
threadId = 0; threadId = 0;
std::queue<std::string> empty = {}; std::queue<std::string> empty = {};
std::swap(ipQueue, empty); std::swap(ipQueue, empty);
ready = false;
} }

View File

@ -1 +0,0 @@


View File

@ -7,7 +7,7 @@ int main(int argc, char *argv[])
QApplication a(argc, argv); QApplication a(argc, argv);
QStringList list; QStringList list;
list << "Eurostile.ttf"; list << "small_font.ttf";
int fontID(-1); int fontID(-1);
bool fontWarningShown(false); bool fontWarningShown(false);
for (QStringList::const_iterator constIterator = list.constBegin(); constIterator != list.constEnd(); ++constIterator) { for (QStringList::const_iterator constIterator = list.constBegin(); constIterator != list.constEnd(); ++constIterator) {

View File

@ -1,6 +1,6 @@
<RCC> <RCC>
<qresource prefix="/nesca_3"> <qresource prefix="/nesca_3">
<file>Eurostile.ttf</file> <file>small_font.ttf</file>
<file>nesca.ico</file> <file>nesca.ico</file>
</qresource> </qresource>
</RCC> </RCC>

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

BIN
small_font.ttf Normal file

Binary file not shown.

View File

@ -1 +1 @@
24B82-836 24B82-89C