Commit fb9df07f authored by Fabian Vogt's avatar Fabian Vogt
Browse files

Don't treat empty passwords as not available

Use QString::isNull() for checking instead.
parent ed482e07
......@@ -306,7 +306,7 @@ int main(int argc, char **argv)
QString retrievedItem;
wallet->readPassword(identifier, retrievedItem);
if (!retrievedItem.isEmpty()) {
if (!retrievedItem.isNull()) {
item = retrievedItem;
} else {
// There was a bug in previous versions of ksshaskpass that caused it to create keys with extra space
......@@ -322,7 +322,7 @@ int main(int argc, char **argv)
}
}
if (!item.isEmpty()) {
if (!item.isNull()) {
QTextStream(stdout) << item;
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment