[Grandmas-svn-commit] SF.net SVN: grandmas-svn: [26] trunk/src
Brought to you by:
matthiasmiller
From: <mat...@us...> - 2006-09-01 03:20:22
|
Revision: 26 http://svn.sourceforge.net/grandmas-svn/?rev=26&view=rev Author: matthiasmiller Date: 2006-08-31 20:20:18 -0700 (Thu, 31 Aug 2006) Log Message: ----------- don't show the open dialog when running unit tests Modified Paths: -------------- trunk/src/grandmas_svn.cpp trunk/src/grandmas_svn.h trunk/src/main.cpp Modified: trunk/src/grandmas_svn.cpp =================================================================== --- trunk/src/grandmas_svn.cpp 2006-08-28 22:55:50 UTC (rev 25) +++ trunk/src/grandmas_svn.cpp 2006-09-01 03:20:18 UTC (rev 26) @@ -37,9 +37,6 @@ #else connect(this, SIGNAL(lastWindowClosed()), this, SLOT(quit())); #endif - - // Show OpenDialog on startup - open(); } GrandmasSVNApp::~GrandmasSVNApp() @@ -60,7 +57,7 @@ mpAppMenu = new QMenuBar(); QMenu* pFile = mpAppMenu->addMenu(tr("&File")); - QAction* pOpen = pFile->addAction(tr("&Open"), this, SLOT(open())); + QAction* pOpen = pFile->addAction(tr("&Open"), this, SLOT(openWorkingCopy())); pOpen->setShortcut(tr("Ctrl+O")); } @@ -69,7 +66,7 @@ return new QSettings(QSettings::IniFormat, QSettings::UserScope, QCoreApplication::organizationName(), QCoreApplication::applicationName()); } -void GrandmasSVNApp::open() +void GrandmasSVNApp::openWorkingCopy() { if (mpOpenDlg) { Modified: trunk/src/grandmas_svn.h =================================================================== --- trunk/src/grandmas_svn.h 2006-08-28 22:55:50 UTC (rev 25) +++ trunk/src/grandmas_svn.h 2006-09-01 03:20:18 UTC (rev 26) @@ -37,12 +37,14 @@ GrandmasSVNApp(int& argc, char** argv, SvnOperationContext* pContext); ~GrandmasSVNApp(); +public slots: + void openWorkingCopy(); + private: void initMac(); static QSettings* createSettings(); private slots: - void open(); void open_done(int result); void openPath(QString path); Modified: trunk/src/main.cpp =================================================================== --- trunk/src/main.cpp 2006-08-28 22:55:50 UTC (rev 25) +++ trunk/src/main.cpp 2006-09-01 03:20:18 UTC (rev 26) @@ -116,5 +116,6 @@ return runTests(); #endif + app.openWorkingCopy(); return app.exec(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |