Skip to content

Commit

Permalink
Refs issue #43: set default mail adress to be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Amadeus committed Jun 11, 2018
1 parent 494a264 commit f39758d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ void MainWindow::shareButtonClick() {
bool ok;
QString text = QInputDialog::getText(this, tr("Schneckenpost"),
tr("Sende dir das Bild an deine Mailadresse:"), QLineEdit::Normal,
QDir::home().dirName(), &ok);
"", &ok);
std::string adr = text.toStdString();
if (ok && !text.isEmpty()) {
if (!text.contains("@") || !text.contains(".")) {
//TODO: show user?
Expand Down

0 comments on commit f39758d

Please sign in to comment.