diff options
| author | Kevin Smith <git@kismith.co.uk> | 2011-10-29 10:59:11 (GMT) | 
|---|---|---|
| committer | Kevin Smith <git@kismith.co.uk> | 2011-10-29 10:59:11 (GMT) | 
| commit | 06e40dd580e43e11e519acbb2d30156c18081f79 (patch) | |
| tree | 83503e4acac19c40c745c44504e3675894cb2dea /Swift/QtUI/QtSwift.cpp | |
| parent | 7cb49cb679156151f19a556de76274c5a25e6de2 (diff) | |
| download | swift-contrib-06e40dd580e43e11e519acbb2d30156c18081f79.zip swift-contrib-06e40dd580e43e11e519acbb2d30156c18081f79.tar.bz2  | |
Make the --eagle-mode banner per-login, not per-run
Diffstat (limited to 'Swift/QtUI/QtSwift.cpp')
| -rw-r--r-- | Swift/QtUI/QtSwift.cpp | 24 | 
1 files changed, 0 insertions, 24 deletions
diff --git a/Swift/QtUI/QtSwift.cpp b/Swift/QtUI/QtSwift.cpp index 7c0a2bd..7f11b5c 100644 --- a/Swift/QtUI/QtSwift.cpp +++ b/Swift/QtUI/QtSwift.cpp @@ -33,7 +33,6 @@  #include "Swift/Controllers/BuildVersion.h"  #include "SwifTools/AutoUpdater/AutoUpdater.h"  #include "SwifTools/AutoUpdater/PlatformAutoUpdaterFactory.h" -#include "Swiften/Base/Paths.h"  #if defined(SWIFTEN_PLATFORM_WINDOWS)  #include "WindowsNotifier.h" @@ -175,29 +174,6 @@ QtSwift::QtSwift(const po::variables_map& options) : networkFactories_(&clientMa  		mainControllers_.push_back(mainController);  	} -	if (eagleMode) { -		QString clickThroughPath(P2QSTRING((Paths::getExecutablePath() / "eagle-banner.txt").string())); -		QFile clickThroughFile(clickThroughPath); -		if (clickThroughFile.exists() && clickThroughFile.open(QIODevice::ReadOnly)) { -			QString banner; -			while (!clickThroughFile.atEnd()) { -				QByteArray line = clickThroughFile.readLine(); -				banner += line + "\n"; -			} -			if (!banner.isEmpty()) { -				QMessageBox msgBox; -				msgBox.setWindowTitle(tr("Confirm terms of use")); -				msgBox.setText(tr("Do you agree to the terms of use?")); -				msgBox.setInformativeText(banner); -				msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No); -				msgBox.setDefaultButton(QMessageBox::No); -				if (msgBox.exec() != QMessageBox::Yes) { -					exit(0); -				} -			} -		} -	} -  	// PlatformAutoUpdaterFactory autoUpdaterFactory;  	// if (autoUpdaterFactory.isSupported()) {  | 
 Swift