Mercurial > hg > easyhg
diff mainwindow.cpp @ 72:121cb1032717
* Bit more work on Open dialog
author | Chris Cannam |
---|---|
date | Thu, 18 Nov 2010 17:36:53 +0000 |
parents | 6d5a5571caec |
children | a773c6e7b301 |
line wrap: on
line diff
--- a/mainwindow.cpp Thu Nov 18 15:29:48 2010 +0000 +++ b/mainwindow.cpp Thu Nov 18 17:36:53 2010 +0000 @@ -79,6 +79,10 @@ cs->addDefaultName(""); cs->addDefaultName(getUserInfo()); + if (workFolderPath == "") { + open(); + } + hgStat(); } @@ -699,13 +703,13 @@ { MultiChoiceDialog *d = new MultiChoiceDialog (tr("Open Repository"), - tr("What would you like to open?"), + tr("<qt><big>What would you like to open?</big></qt>"), this); d->addChoice("remote", tr("<qt><center><img src=\":images/browser-64.png\"><br>Remote repository</center></qt>"), - tr("Open an existing remote repository, by cloning a Mercurial repository URL into a local folder."), - MultiChoiceDialog::UrlArg); + tr("Open a remote Mercurial repository, by cloning from its URL into a local folder."), + MultiChoiceDialog::UrlToDirectoryArg); d->addChoice("local", tr("<qt><center><img src=\":images/hglogo-64.png\"><br>Local repository</center></qt>"), @@ -726,7 +730,8 @@ if (choice == "local") { workFolderPath = arg; - } else { + } else if (choice == "remote") { + DEBUG << "clone " << arg << " to " << d->getAdditionalArgument().trimmed() << endl; //!!! } @@ -1029,6 +1034,7 @@ case ACT_CLONEFROMREMOTE: MultiChoiceDialog::addRecentArgument("local", workFolderPath); MultiChoiceDialog::addRecentArgument("remote", remoteRepoPath); + MultiChoiceDialog::addRecentArgument("remote", workFolderPath, true); QMessageBox::information(this, "Clone", runner -> getStdOut()); enableDisableActions(); shouldHgStat = true;